cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors