Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jesilva
New Member

PBI conditional formatting per row

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

 

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.