Feb 17 2023 06:22 AM
Hello Everyone, I´m having an issue witha a pivot table from the data model.
I want the quarterly subtotals to show monthly average rather than sum, but the option is grayed out:
Is there a way i can work around this?
Thank you!
Feb 17 2023 08:33 AM
If you are on data model I'd recommend not to use implicit measures at all. Create your own DAX explicit measures with SUM, AVERAGE, whatever and use them in PivotTable.
Feb 17 2023 10:19 AM
@Sergei Baklan
Thanks for your reply!
I´m not very good with DAX measures, how could I create a measure that sums by month and then shows quarter monthly average?
Thanks!
Feb 17 2023 10:28 PM - edited Feb 17 2023 10:29 PM
If you post a very small, copiable dataset together with expected results I can show you the necessary measures.
Regards
Feb 18 2023 06:30 AM
SolutionFor such sample
measure could be
Total:=IF (
HASONEVALUE ( tbl[Date (Month)] ),
SUM ( tbl[Value] ),
AVERAGEX (
VALUES ( tbl[Date (Month)] ),
DIVIDE ( SUM ( tbl[Value] ), COUNTROWS ( VALUES ( tbl[Date (Month)] ) ), 0 )
)
)
Feb 22 2023 05:02 AM
Feb 22 2023 05:03 AM
Mar 01 2023 06:17 AM
You are welcome, glad to help