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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Conditional Formatting based on variable parameters

Hi everyone,

 

I'm having  columns in a report for which I want to show trend based icons. I could solve this by conditonal formatting; the problem is that I have a lot of columns and a lot of reports for which I'd like to do that, but they all rely on the same conditions. Therefore I would like to have a hidden report which is just stating the parameters for the conditional formatting, which I want to use for conditional formatting in all the other reports. This approach has the advantage that I don't have to change each column each time I'm changing the parameters for the trend based icons.

Is there any way to do that? I appreciate all ideas!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You could use what-if parameter and create a measure like below.

Parameter = GENERATESERIES(0, 3, 1)

Parameter Value = SELECTEDVALUE('Parameter'[Parameter])

Measure 4 = SWITCH(TRUE(),Parameter[Parameter Value]<1,[Measure],Parameter[Parameter Value]>=1&&Parameter[Parameter Value]<2,[Measure 2],Parameter[Parameter Value]>2,[Measure 3])

Result would be shown as below.

1.PNG

2.PNG

3.PNG

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

You could use what-if parameter and create a measure like below.

Parameter = GENERATESERIES(0, 3, 1)

Parameter Value = SELECTEDVALUE('Parameter'[Parameter])

Measure 4 = SWITCH(TRUE(),Parameter[Parameter Value]<1,[Measure],Parameter[Parameter Value]>=1&&Parameter[Parameter Value]<2,[Measure 2],Parameter[Parameter Value]>2,[Measure 3])

Result would be shown as below.

1.PNG

2.PNG

3.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , not very clear. But you can create icon measure and color measures and use those. refer to these blogs and see if they can help

 

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

https://exceleratorbi.com.au/dax-unichar-function-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for your suggestions! It's heading in the right direction.

I'll try to specify what I want:

I want to have KPI for multiple columns and reports. The particularity is that they all depend on the same threshold values for the rules. Instead of retyping this every time or copying it around, I'd like to generaliye it so that if the values for the KPI changes, I just have to change it one time and for multiple columns and reports.

 

My idea is that I have a variable x, if x<1 I want to KPI 1, if 1<= x <2 I want to return KPI 2 and finally for x>2 it should be KPI 3.

This rule should be applied to different columns with different measures, so that I get a KPI for each field.

Basically I could just apply this rule to each column by hand, but I would like to formalize it. So that - if my thresholds for the rule changes - I just have to change it one time and it applys to all columns which rely on the variable of the generalized rule and I don't have to change all the conditional formatting on the columns of my table.

Please tell me, if I have to elaborate this further, I'm quite new to Power BI but have worked with other reporting tools in the past.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.