Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all!
I have managed to create a Matrix visual that looks like the following:
Group 1 - Group 3 are columns made out of measure that calculates percentage amount from the value in 'Sum of Set-off / payment amount' column.
In the rightmost part of the visual, there is the grand total columns for each of the rows:
Why the Group 1 to Group 3 are not summed? Is there a way to sum the Group columns?
Best regards,
Bona
Solved! Go to Solution.
Hi @Anonymous ,
You can try to create another 3 new measures as below, and put them on the matrix to replace the original measures [Group 1], [Group 2] and [Group 3].
Ngroup1 =
SUMX (
VALUES ( 'Date'[Fiscal year] ),
SUMX ( VALUES ( 'Tablex'[Obligation type] ), [Group 1] )
)
Ngroup2 =
SUMX (
VALUES ( 'Date'[Fiscal year] ),
SUMX ( VALUES ( 'Tablex'[Obligation type] ), [Group 2] )
)
Ngroup3 =
SUMX (
VALUES ( 'Date'[Fiscal year] ),
SUMX ( VALUES ( 'Tablex'[Obligation type] ), [Group 3] )
)
Best Regards
Hi @Anonymous ,
You can try to create another 3 new measures as below, and put them on the matrix to replace the original measures [Group 1], [Group 2] and [Group 3].
Ngroup1 =
SUMX (
VALUES ( 'Date'[Fiscal year] ),
SUMX ( VALUES ( 'Tablex'[Obligation type] ), [Group 1] )
)
Ngroup2 =
SUMX (
VALUES ( 'Date'[Fiscal year] ),
SUMX ( VALUES ( 'Tablex'[Obligation type] ), [Group 2] )
)
Ngroup3 =
SUMX (
VALUES ( 'Date'[Fiscal year] ),
SUMX ( VALUES ( 'Tablex'[Obligation type] ), [Group 3] )
)
Best Regards
Thank you so much for your help!
The updated formula now worked as intended.
Hello!
Sorry for reverting back just now.
I tried creating a new measure with the codes from your post, but this error message popped up:
For your reference, this is the list of fields available in my dataset:
And this is how I write the formula for Group 1 - Group 3:
Hi @Anonymous ,
Yes, you are right. The table 'Date' and 'Tablex' not exist in your model, your table name is "Sheet1"... Please update the formula of measure as below:
NGroup1 =
SUMX (
GROUPBY ( 'Sheet1', 'Sheet1'[Fiscal year], 'Sheet1'[Obligation type] ),
[Group 1]
)
NGroup2 =
SUMX (
GROUPBY ( 'Sheet1', 'Sheet1'[Fiscal year], 'Sheet1'[Obligation type] ),
[Group 2]
)
NGroup3 =
SUMX (
GROUPBY ( 'Sheet1', 'Sheet1'[Fiscal year], 'Sheet1'[Obligation type] ),
[Group 3]
)
Best Regards
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.