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! Learn more

Reply
Lazy
New Member

How to make a measure invariable ?

Hi, 

 

I have to calculate a value of items which will be used as a denominator. But, I don't want it to be filtered !

 

Here's my formula : 

QteRebutGlobal = calculate( sum(ExtractionProduction[QteRebut]); extractionPrudction[CodeDefaut] <> "QRC");

 

When I make a Table with CodeDefaut as first column and QteRebutGlobal as second one, QteRebutGlobal is not unchanging !

 

I tried that :

QteRebutGlobal = calculatesum(ExtractionProduction[QteRebut]); filterall(extractionPrudction[CodeDefaut]); extractionPrudction[CodeDefaut]  <> "QRC"));

 

But it makes the same result. 

 

Sorry for the mistakes but I am french :s

Thank you !

 

1 ACCEPTED SOLUTION

Thank you for your answer, I'm a beginner with DAX...

 

In fact, the measure I want to calculate is a denominator for an other one, so it has to be unchanging despite the chart X-axis or chart legend.

 

However, I found the solution, I discovered how to use "ALL()" !


View solution in original post

2 REPLIES 2
mattbrice
Solution Sage
Solution Sage

The two versions of the formula are equivalent.  The first one you wrote is just shorthand for the second one. 

 

But I am not clear no what you mean by "I have to calculate a value of items which will be used as a denominator. But, I don't want it to be filtered !" ?

Best to provide table inputs and desired output so someone can assist.

Thank you for your answer, I'm a beginner with DAX...

 

In fact, the measure I want to calculate is a denominator for an other one, so it has to be unchanging despite the chart X-axis or chart legend.

 

However, I found the solution, I discovered how to use "ALL()" !


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 Solution Authors