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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Sowmya18
Frequent Visitor

How to subtract a row value from overall measure

Hi ,

I'm looking for DAX calculation for below. I'm looking to substract "OT $$" value which is 11,496,557 from "Regular $$" amount 

Regular $$ = Regular - O/T (3,036,088,683.84-11,496,557.01=3,024,592,126.83).

 

Sowmya18_1-1635130418760.png

 

 

3 REPLIES 3
Sowmya18
Frequent Visitor

Thank you Vahid for replying me back. Here I have calculated this column based on the Benifits field,

if Benifits = "O/T $$"then Total Amount * 3 , if Benifits = "Benifits $$" then Total Amount and If Benifits = "Regular $$" then I want the result as (TotalAmount *2 )- O/T $$.

I could create a calculation till the Total amount multipling but I'm not getting how to substract the O/T value from the Regular Total Amount value.

If you see below Total Amount for O/T is 11,496,557.01 and i have calculated Regular Total Amount - (1,518,044,341.92)*2 =3,036,088,683.84 . Now I want to exclude Regular - O/T= (3,036,088,683.84)-(11,496,557.01)=3,024,592,126.83. 

Sowmya18_0-1635170872769.png

 

VahidDM
Super User
Super User

Hi @Sowmya18 

 

How do you want to show the result (that 3,024,592,126.83)? can you share a result in table or any other visual you are looking for?

 

Appreciate your Kudos!!

 

Thank you Vahid for replying me back. Here I have calculated this column based on the Benifits field,

if Benifits = "O/T $$"then Total Amount * 3 , if Benifits = "Benifits $$" then Total Amount and If Benifits = "Regular $$" then I want the result as (TotalAmount *2 )- O/T $$.

I could create a calculation till the Total amount multipling but I'm not getting how to substract the O/T value from the Regular Total Amount value.

If you see below Total Amount for O/T is 11,496,557.01 and i have calculated Regular Total Amount - (1,518,044,341.92)*2 =3,036,088,683.84 . Now I want to exclude Regular - O/T= (3,036,088,683.84)-(11,496,557.01)=3,024,592,126.83. 

Sowmya18_0-1635258340787.png

 

 

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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