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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

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

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors