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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Substraction between a fix number and a measure

Hello,

 

I would like to make a substraction between a fix number and a measure :

[New Measure] = 1 - [My Measure].

 

The result of this New Mesure work fine, but... when i try to filter, this filter doesn't work :

 

As you see on the screenshot, i have a blank line (on the 1st line).

But if i just insert the measure [My Measure], i don't have this blank line and it work fine.

 

[My Measure] = 1 - (CALCULATE(divide([nb_retard],[nb_total])))

 

nb_retard = CALCULATE(count(Qualifs[N°]), Qualifs[EcheanceTheo] < TODAY())
nb_total = CALCULATE(COUNT(Qualifs[N°])
 
 
Could you help me ? 
Thanks a lot 🙂
 

2022-03-30 15_05_59-projet equalif - Power BI Desktop.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I tried a measure like this

1- 'Measure'[Margin %]

and it work fine and allow filter to work

 

or try like
(CALCULATE(divide([nb_total]- [nb_retard],[nb_total])))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , I tried a measure like this

1- 'Measure'[Margin %]

and it work fine and allow filter to work

 

or try like
(CALCULATE(divide([nb_total]- [nb_retard],[nb_total])))

Anonymous
Not applicable

It work fine with the second solution, thanks a lot !! 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors