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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
RKAD
New Member

Using parameter numeric range in a calculated colunn in PowerBi desktop

I would like to calculate a value of percentage in Test DPR according to values in two other colunns PARI and Rapport juste like this :  

RKAD_0-1733923577572.png

Then I would the condition of each switch case (Rapport 1, Rapport 2 and Rapport 3) and action to do for each case (GAG, JUG...etc ) to be dynamic and adjustable by the user througth  some parameter numerci range 

 

RKAD_1-1733929553166.png

The Rapport 1 Rapport 2 and Rapport 3 paramter numeric range work properly  but the GAG1 JUG1 dont at all I tried différence mays to insert then in the formula but nothing works

RKAD_2-1733930174389.png

The colunn results just blank

RKAD_3-1733930384443.png

Could you please help me to solve this issue ?

Thank you very much for your help 

2 ACCEPTED SOLUTIONS
johnt75
Super User
Super User

Calculated columns are only calculated during data load or refresh, they are not affected by any slicers or filters. If you want something to react dynamically then you must use a measure.

View solution in original post

Anonymous
Not applicable

Hi, @RKAD 

Thanks for @johnt75's reply. Here's some additional content. Calculated column store the data in the model once it is written and are not affected by filters such as slicers; Measure changes in real time and is affected by filters, so you should try to use measure rather than calculated column.

Difference Between Calculated Column and Measure in Power BI - SharePoint & Microsoft Power Platform...
When to use Calculated Columns and Calculated Fields - Microsoft Support

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @RKAD 

Thanks for @johnt75's reply. Here's some additional content. Calculated column store the data in the model once it is written and are not affected by filters such as slicers; Measure changes in real time and is affected by filters, so you should try to use measure rather than calculated column.

Difference Between Calculated Column and Measure in Power BI - SharePoint & Microsoft Power Platform...
When to use Calculated Columns and Calculated Fields - Microsoft Support

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

johnt75
Super User
Super User

Calculated columns are only calculated during data load or refresh, they are not affected by any slicers or filters. If you want something to react dynamically then you must use a measure.

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.