Forum Discussion
Cant get correct total on complex model
- 3 years ago
You're welcome,
Yes I tried it in the file you sent and it worked.
No worries.
Hi Mostafa-Hussien ,
I think it is because of the ALLSELECTED function that you have in Measure3.
Please comment it and let me know the result.
Regards,
Loran
I cannot drop the ALLSELETED(), otherwise it will not aggregate regardless of the ALLSELECTED arguments.
I mean; I added certain columns to ALLSELECTED like CLIENTID, because I want an aggregate value regardless of CLIENTID
- MohammadLoran253 years ago
Solution Sage
Not the best solution, but as an easy and fast solution to fix it, please try this as well. It should work for your total:
Measure = VAR _TABLEE = ADDCOLUMNS ( SUMMARIZE ( GENERAL_ACCOUNT, GENERAL_ACCOUNT[BU], GENERAL_ACCOUNT[Link], GENERAL_ACCOUNT[ACCOUNTCODE] ), "@measure3", [measure3] ) RETURN SUMX ( _TABLEE, [@measure3] )- Mostafa-Hussien3 years ago
Helper I
Thanks MohammadLoran25
This works fine for returning positive and negative values and correct total
But how can i retrieve only positive values while retaining a correct total ?
- MohammadLoran253 years ago
Solution Sage
Your [measure3] only returns postivie value so the measure I sent recently should work for positive values.