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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
ronaldbalza2023
Continued Contributor
Continued Contributor

Conditional Formatting - Table with Multiple Measures

Hi power bi friends. Could someone help me out on this one please. So I have a table with static data (5 years & 1 year column) and with different measures (YTD column)

I wanted to have a conditional formatting with the YTD column like data bar that says if YTD column is nearing to reach the 1 year column, the color will be turned into orange, then if YTD is nearing to reach the 5 year column it will then turned into green. Please note that the YTD column has different measures and value on it so I am not sure if right-clicking and set the conditional formatting would work. Thanks in advance!

 

See YTD column measures:

 

 

YTD Measure = IF (
    HASONEVALUE ( 'KPI Financial Planning'[Category] ),
    SWITCH (
        VALUES ( 'KPI Financial Planning'[Category] ),
        "$EBIT", [$EBIT Financial Planning],
	    "$Revenue", [$Revenue FP],
	    "Average Revenue/Client $", [Average Revenue/Client $],
	    "Client facing team members", [No. of Clients FP],
        "EBIT% of revenue", [EBIT% of revenue FP],       
        "Enterprise Value", [Enterprise Value FP],
        "No. of business locations", [No. of Business Locations],
        "No. of Clients", [No. of Clients FP],
        "No. of equity holders", [No. of equity holders],
        "Revenue per FTE", [Revenue per FTE FP],
        "Total FTE team", [Total FTE Team FP],
        "Turnaround Days", [Turnaround Days FP],
        0
    ))

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @ronaldbalza2023 ,

I created some data:

vyangliumsft_0-1628217735637.png

Here are the steps you can follow:

1. Create measure.

Measure =
QUARTER(MAX('Table'[date]))

2. Find [Measure] in Fields, and select Conditional formatting – Background color.

vyangliumsft_1-1628217735643.png

3. Enter the Background color interface, select Format by – Rules, and then set the conditions according to your needs.

vyangliumsft_2-1628217735647.png

4. Result:

vyangliumsft_3-1628217735648.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @ronaldbalza2023 ,

I created some data:

vyangliumsft_0-1628217735637.png

Here are the steps you can follow:

1. Create measure.

Measure =
QUARTER(MAX('Table'[date]))

2. Find [Measure] in Fields, and select Conditional formatting – Background color.

vyangliumsft_1-1628217735643.png

3. Enter the Background color interface, select Format by – Rules, and then set the conditions according to your needs.

vyangliumsft_2-1628217735647.png

4. Result:

vyangliumsft_3-1628217735648.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

thanks very much 🙂

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.