Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |