Forum Discussion
Subtotals Issue on Matrix Report
- 5 years ago
Hello @aksharacoomar , you must condition the value shown in the subtotals, you can use the HASONEVALUE function or the ISINSCOPE function for is, here I leave you a link that can serve you a lot, https://youtu.be/Q_l-6oYOdJ8
- 5 years ago
Hi, aksharacoomar
According to your requirement, you can follow my steps:
- Create some measures:
Day1 = IF( HASONEVALUE('Table'[Day]), MAX('Table'[Day]), BLANK())Holiday1 = IF( HASONEVALUE('Table'[Holiday]), MAX('Table'[Holiday]), BLANK())Peak vs. Non-Peak Days1 = IF( HASONEVALUE('Table'[Peak vs. Non-Peak Days]), MAX('Table'[Peak vs. Non-Peak Days]), BLANK())For your amount columns, you can use sum(), like this:
Amount1 = SUM('Table'[Amount])2. Go to the Matrix chart, Use [Day1] to replace [Day], [Holiday1] to replace [Holiday], [Peak vs. Non-Peak Days1] to replace [Peak vs. Non-Peak Days], [Amount1] to replace [Amount], like this:
And you can get what you want.
You can download my test pbix file from here
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, aksharacoomar
According to your requirement, you can follow my steps:
- Create some measures:
Day1 =
IF(
HASONEVALUE('Table'[Day]),
MAX('Table'[Day]),
BLANK())Holiday1 =
IF(
HASONEVALUE('Table'[Holiday]),
MAX('Table'[Holiday]),
BLANK())Peak vs. Non-Peak Days1 =
IF(
HASONEVALUE('Table'[Peak vs. Non-Peak Days]),
MAX('Table'[Peak vs. Non-Peak Days]),
BLANK())
For your amount columns, you can use sum(), like this:
Amount1 = SUM('Table'[Amount])
2. Go to the Matrix chart, Use [Day1] to replace [Day], [Holiday1] to replace [Holiday], [Peak vs. Non-Peak Days1] to replace [Peak vs. Non-Peak Days], [Amount1] to replace [Amount], like this:
And you can get what you want.
You can download my test pbix file from here
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi v-robertq-msft ,
Thank you, your solution worked 🙂
Wondering how I can add 'Total monthname' at the end of each month?
I also plan on splitting the data by week eg: Oct Wk, Oct Wk2 etc so the Oct month end will be an aggregation of Oct Wk1 - Wk4. If you have any useful documentation or videos that can lead me to what I want to accomplish will also be super helpful. Thank you 🙂