admin 管理员组文章数量: 1086019
I need your assistance.
I’ve configured a ColorPicker with a condition like this:
new formattingSettings.ColorPicker({
name: dataPoint.name,
displayName: dataPoint.displayName,
value: { value: dataPoint.value as string },
...(dataPoint.name === 'backgroundColorValue' && {
instanceKind: powerbi.VisualEnumerationInstanceKinds.ConstantOrRule
})
})
However, I’m unable to retrieve the condition (rule) inside it so I can process the colors for my data. How can I access the condition defined by the user in the Power BI UI and use it to apply colors to my visual?
Here is my capabilities.json configuration:
"backgroundColorValue": {
"displayName": "Background Color",
"type": {
"fill": {
"solid": {
"color": true
},
}
}
}
My Question: In the Power BI documentation, for "Table-based visuals", it is mentioned that conditional formatting is not supported. I am using dataViewMappings with the "table" type as follows:
"dataViewMappings": [
{
"table": {
"rows": {
"select": ["..."]
}
}
}
]
Does this mean my visual will not support Conditional Formatting, as mentioned in the Power BI documentation? If so, what is the correct approach to retrieve the conditional formatting rule and apply it to my visual?
I hope you can share a tutorial or confirm whether "table" type visuals do not support conditional formatting.
Thanks in advance!
本文标签: powerbiUnable to Retrieve Conditional Formatting Rule in Power BI Custom VisualStack Overflow
版权声明:本文标题:powerbi - Unable to Retrieve Conditional Formatting Rule in Power BI Custom Visual - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1743997157a2515788.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论