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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Please help me out to create a VAR function for changing the color scheme for multiple Targets

HI, i am new to Power BI system. I am stuck in one of the DAX calculation. I have  different targets for different processes in which i want to reflect in single gauge visual using Var function for changing the color of accuracy score based on Target value when filter different Processes. would you please help me out to create a DAX function for  callout value & changing the Bar colors based on that function ?

For reference sharing dumy data:

Process   Target   Accuracy Score

1.   A          90%          89%

2.   B          95%          97%

3.   C          99%          100%

Based on above scenario, i want to change the Bar color as Green in case of Accuracy score >= Target Value otherwise Red.  Similarly want to highlight in table using icons when selecting different Process based on results

1 ACCEPTED SOLUTION
Whitewater100
Solution Sage
Solution Sage

Hi:

Please see attached file. You can can the colored icons to data bars or diff text unde FORMAT "Cell Elements".

 

I began a overview on goal type A in the event you want to continue that for B & C for summary purposes.

 

I will attach link here. I hope this helps!

 

https://drive.google.com/file/d/1cs9p7W0pMgfda4JFyV5uvS4ziPZAzup7/view?usp=sharing

 

Whitewater100_0-1655059039190.png

 

View solution in original post

1 REPLY 1
Whitewater100
Solution Sage
Solution Sage

Hi:

Please see attached file. You can can the colored icons to data bars or diff text unde FORMAT "Cell Elements".

 

I began a overview on goal type A in the event you want to continue that for B & C for summary purposes.

 

I will attach link here. I hope this helps!

 

https://drive.google.com/file/d/1cs9p7W0pMgfda4JFyV5uvS4ziPZAzup7/view?usp=sharing

 

Whitewater100_0-1655059039190.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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