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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Hasan_iba
Helper II
Helper II

Help with calculating grand total as a measure

Here is the link to the data set i am working with

https://drive.google.com/file/d/0B0XwYvmbIN12S25wQTRtVUhIaVE/view?usp=sharing

 

Hello power BI experts. Hope you are doing great!! I am having a slight issue with calculating a measure. I have revenue and expenses as rows. What i need to get is a measure named grand total which should be equal to revenue-direct expense-operating expense+other income. How can i achieve that based on the data i have? Also i need to have the grand total measure as a row in the report. Thanks a lot. A prompt solution will be highly appreciated. Thanks again

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Hasan_iba,

 

Can you simplify your data model? I wonder if a calculated column helps.

Column =
IF (
    'Table'[Type] IN { "Direct Expenses", "Operating Expenses" },
    - 'Table'[Amount],
    'Table'[Amount]
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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