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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.