Forum Discussion
matrix subtotal
Hi there,
Can someone please advise on how I can handle this?
The highlighted column is a calcualted field (1575-5-1535 =35) in matrix, which I want it to show the subtotal of 73, but it is showing the row calculation. 1575-7-1535 = 33.
Remaining Scheduled = MAX('uv_pbi_res_id_count'[res_val_protests]) - SUM('uv_pbi_hrsummary'[count_strap])- MAXA('uv_pbi_res_agent_id_count'[res_settled])
I hope it makes sense, please help.
Thanks!
- Anonymous1 year ago
Thanks for the reply from parry2k please allow me to provide another insight:
Hi, sraj
Regarding the issue you raised, my solution is as follows:
1.First I have created the following table and the column names and data are the data you have given:
2.First create a calculation table:
Table2 = VAR _summarize = SUMMARIZE ( 'Table', [id], "Column1", "RETURN", "VALUE", CALCULATE ( SUM ( 'Table'[VALUE] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Column1] = "B" ) ) - CALCULATE ( SUM ( 'Table'[VALUE] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Column1] = "C" ) ) - CALCULATE ( SUM ( 'Table'[VALUE] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Column1] = "D" ) ) ) RETURN UNION ( 'Table', _summarize )3.Here's my final result, which I hope meets your requirements.
4.Here is the relevant documentation:
How to put the row and column subtotals in front o... - Microsoft Fabric Community
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- parry2kSuper User
sraj I will defer your question to Greg_Deckler - good luck!
- AnonymousNot applicable
Thanks for the reply from parry2k please allow me to provide another insight:
Hi, sraj
Regarding the issue you raised, my solution is as follows:
1.First I have created the following table and the column names and data are the data you have given:
2.First create a calculation table:
Table2 = VAR _summarize = SUMMARIZE ( 'Table', [id], "Column1", "RETURN", "VALUE", CALCULATE ( SUM ( 'Table'[VALUE] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Column1] = "B" ) ) - CALCULATE ( SUM ( 'Table'[VALUE] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Column1] = "C" ) ) - CALCULATE ( SUM ( 'Table'[VALUE] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Column1] = "D" ) ) ) RETURN UNION ( 'Table', _summarize )3.Here's my final result, which I hope meets your requirements.
4.Here is the relevant documentation:
How to put the row and column subtotals in front o... - Microsoft Fabric Community
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.