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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sentsara
Helper II
Helper II

DAX Expression help needed

 

Hi,

I need to derive "LATEST Break Even" Dax Expression  based on calculated column "Rate Vs Breakeven"

 

DataSet name: QBM

 

Rate Vs Breakeven = if([Current Rate 2019]=0,blank(),if(ISBLANK([Current Rate 2019]),blank(),[Current Rate 2019]-[Monthly Break Even]))

 

Tried with below Expression and thrown "Expression refers to multiple column.Multiple column cannot be converted into scalar value"

 

LATEST Break Even=CALCULATE(MAX([Rate Vs Breakeven],ALL('QSI By Measure')))

 

Basically i need Lastest break even value should be repeated based on Max of "Rave vs Breakeven"

 

TRENDMONTHCurrent Rate 2019Monthly Break EvenRate Vs BreakevenLatestBreakevenStatic Final Rate
10.67% 0.67%0.21%0.423357664
24.29%5.42%-1.13%0.21%0.423357664
37.48%7.64%-0.16%0.21%0.423357664
410.74%10.54%0.20%0.21%0.423357664
512.54%12.33%0.21%0.21%0.423357664
6 14.14% 0.21%0.423357664
7 15.46% 0.21%0.423357664
8 16.48% 0.21%0.423357664
9 15.93% 0.21%0.423357664
10 18.35% 0.21%0.423357664
11 19.42% 0.21%0.423357664
12 19.61% 0.21%0.423357664
13 19.61% 0.21%0.423357664
14 21.87% 0.21%0.423357664
15 28.71% 0.21%0.423357664
16 43.36% 0.21%0.423357664
17 44.34% 0.21%0.423357664
18 44.34% 0.21%0.423357664
11 REPLIES 11
Anonymous
Not applicable

What is  the logic ( not formula) for Rate Vs Breakeven ?

 

Thanks
Raj

Hi Rajendran.

 

"Rate Vs Breakeven" is the Caculated Column.

Logic for "Rate Vs Breakeven" is -->  "Current Rate 2019" - "Monthly Break Even"

Formula: Rate Vs Breakeven = if([Current Rate 2019]=0,blank(),if(ISBLANK([Current Rate 2019]),blank(),[Current Rate 2019]-[Monthly Break Even]))

Ashish_Mathur
Super User
Super User

Hi,

 

Are those formulas measures or calculated columns?  Share the link from where i can download your PBI file.  Share only relevant data in that file please.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

all are caculated columns.

Hi,

 

This measure will work

 

=LOOKUPVALUE([Rate Vs Breakeven],Data[TRENDMONTH],CALCULATE(MAX(Data[TRENDMONTH]),FILTER(ALL(Data),[Rate Vs Breakeven]<>BLANK())))

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

rate.PNG

Hi Ashish,

 

I'm not able to get the "Rate Vs Breakeven"  in LookupValueExpression. it seems "Rate Vs Breakeven" is a Measure value.RATE1.PNG

 

 

 

 

Hi,

 

[Rate v/s breakdown] should be a calculated column - as you had stated in your post.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Yes I'm wrong...it's a Measure..

Hi,

 

SInce the calculation for that is a mere subtraction, write that as a calculated column formula instead and then write my measure.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

when I tried this by converting into Calculated Column the below error is thrown for "Rate Vs Breakeven1".RATE2.PNG

I do not know what you are doing.  Delete your existing measure and my measure.  Rewrite your original formula as a calculated column and then write my formula as a measure.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.