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! Request now

Reply
adavid999
Helper V
Helper V

conditional formatting for large table based on measures

Hi, I am working in excel power query and wondered if there was an easy way to conditionally format my pivot table columns based on measure values. The columns are calculated measures (for difference and confidence interval for each question) based on e.g. Regions - like example below. There are many regions and therefore many repeating measures and I wondered if it was possible to set conditional formatting up so it applies to all regions in my large table in one go. So fornatted green or red where difference is greater than or less that confidence interval (+/-). 

 

 Region a Region b 
 DifferenceConfidence interval +/-DifferenceConfidence interval +/-
q17642
q2-109-31
     
     

 

Many thanks,

A

4 REPLIES 4
Jimmy801
Community Champion
Community Champion

Hello @adavid999 

 

this is no Power Query question and not even Power BI question 🙂

But I'm trying to answer nevertheless

You can accomplish this with the normal conditional formatting of Excel. You can use this formula as guideline

=OR(AND(B$2="Difference";B3>C3);AND(B$2="Confidence interval +/-";A3>B3))

 

image.png

 


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Hi @Jimmy801 thanks for responding. I am using power query/calculated measures to generate values in my pivot table and wanted to know if it were possible to set up conditional formatting based on these, rather than visible cell location specific. So for example whether it was possible to conditionally format a value shown in my pivot table based on the value of a related calculated measure, not necessarily shown in the pivot table.

Hello @adavid999 

 

formatting is always done in the Excel-sheet and not in the data model.

So you need to use conditional formatting as shown in my example. Columns can also be hidden

 

Jimmy

 

ps, so formatting visible % column, based on measurs Diff and CI - without showing these values in pivot table

 

 

Capture.PNG

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.

Top Kudoed Authors