Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I'm upgrading a visual to be able to draw a polygon with a different style based on conditions. F.e: if field X = "abc" color should be red and size 5, otherwise color blue and size 2. The user should be able to set these in the panel.
I'm currently able to implement it by using:
instanceKind: powerbi.VisualEnumerationInstanceKinds.ConstantOrRule,
selector: dataViewWildcard.createDataViewWildcardSelector(dataViewWildcard.DataViewWildcardMatchingOption.InstancesOnly)
However I cannot find the style values per row, only one general style that changes based on what's filtered. So if I filter the data (using a table visual) to an entry where X = "abc" I do get red (not size as I'm not sure if it can do numbers) but when it's not filtered I only get the default blue.
Am I in the right track using conditional formatting or should be doing something else instead?
Thanks in advance
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |