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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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