Forum Discussion
Wrong Column Totals (Matrix)
- 3 years ago
Hi , marcofalzone
Thanks for your provided sample .pbix file .
According to your description, the total is wrong because it not get the summation of the columns.
You can try to use this measure :
Act_Eur_Ytd Test = var _t =ADDCOLUMNS( CROSSJOIN(VALUES('Company'[CompanyString]), VALUES('PL_Mapping'[PLRowDescr])) , "Act_Eur_Ytd" , [Act_Eur_Ytd]) return SUMX(_t ,[Act_Eur_Ytd])Then we can get the right total:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , marcofalzone
Thanks for your provided sample .pbix file .
According to your description, the total is wrong because it not get the summation of the columns.
You can try to use this measure :
Act_Eur_Ytd Test =
var _t =ADDCOLUMNS( CROSSJOIN(VALUES('Company'[CompanyString]), VALUES('PL_Mapping'[PLRowDescr])) , "Act_Eur_Ytd" , [Act_Eur_Ytd])
return
SUMX(_t ,[Act_Eur_Ytd])
Then we can get the right total:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Dear Aniya, I'm really impressed by the quality and elegance of your solution. My congratulations for your skills! That's just what I was looking for.
I do appreciate the help that this community gives to whoever wants to learn and deep dive into SQL, DAX, and Business Intelligence challenges in general.
Thank you very much for your extremely VALUABLE support!
Marco - Mexico