Forum Discussion
alexei7
6 years agoContinued Contributor
Total Incorrect for weighted calculation - DAX help
Hi everyone, I'm struggling with DAX and hoping someone here can help. My data is a table with a row for each sale, split by date and country. I have another table which contains the number ...
v-juanli-msft
6 years agoCommunity Support
Hi alexei7
Do you want to column total of matrix to show correct?
If so, create a measure
Measure 2 =
IF (
ISINSCOPE ( Sheet1[date] ),
[Measure],
SUMX (
FILTER ( ALLSELECTED ( Sheet1 ), Sheet1[country] = MAX ( Sheet1[country] ) ),
[Measure]
)
)
Best Regards
Maggie
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
alexei7
6 years agoContinued Contributor
Hi Maggie,
Thanks for your time in looking into this.
I don't quite understand your solution, and it doesn't correlate to my example, so I can't translate it, or make it work.
e.g. my example has two connected tables
The pbix model with dummy data is attached here:
https://mega.nz/#!rwNBTSSY!cK0EAKschH1tAcXspNRdF4rwCY9YoOXebyREhmXVamI