Hi Experts, I have a measure as below
I have Table1 and Table2, I am just finding the difference of values from between Table1 Field and Table 2 Field
As it is working perfectly in Rows but Grand Total is not coming in Bottom
VAR Prj = SELECTEDVALUE(Table1[Project])
Var Des = CALCULATE(MAXX(Table2,Table2[DES LBE]),Table2[Project]=prj)
VAR CurrenTotal = CALCULATE(MAXX(Table1,Table1[Current Total of the Prices]),Table1[Project]=prj)
VAR Result = IF(Des <>BLANK(), CurrenTotal-Des,BLANK())
VAR TotalResult = IF(Prj<>BLANK(),Result,BLANK())
To get and include the grand total I have to write another measure as below
Including Grand Total =
Any possible to write measure in single measure to acheive grand total as well please?
Is your issue solved? If the issue has been solved, please adopt the solution to help others.
If you still have some question, please provide your sample data and i will check it in my environment.
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Is your issue solved?
Maybe you can try HASONEVALUE function.
Grand Total // calculation logic of total
If you still have some question, please don't hesitate to let me known.
Please check this function. By the way this is what the Power BI visuals use behind the scenes.
ROLLUPADDISSUBTOTAL function (DAX) - DAX | Microsoft Docs
Check out the News & Announcements to learn more.
Click here to read more about the October 2021 Release!
Check out the new Power Platform Community Connections gallery!
Mark your calendars and join us for our next Power BI Dev Camp!