anvg
Active Member
- Joined
- Feb 14, 2012
- Messages
- 485
Hi
Is there a way to display in pivot table a subtotal of a power pivot measure only and to skip empty columns?
Let I want show in that pivot table for a month case - sum of values only and for a year case - count of values only.
For that I create two measures [Month sum only] and [Year count only] with codes
and
If I create a pivot table and use the [Month sum only] measure only then I see what I want. (In my file it is "Month sum only" sheet.
For the [Year count only] measure it is a similar result. ("Year count only" sheet).
But when I create a pivot table with both measures I get empty columns in each months for the [Year count only] measure and empty columns [Month sum only] in each subtotals. ("Both sum and count measure" sheet).
I uploaded my example file to Zippyshare.com - subtotal_only.xlsx
Regards,
Is there a way to display in pivot table a subtotal of a power pivot measure only and to skip empty columns?
Let I want show in that pivot table for a month case - sum of values only and for a year case - count of values only.
For that I create two measures [Month sum only] and [Year count only] with codes
Code:
Month sum only:=IF(DISTINCTCOUNT('Calendar'[Month])=1,SUM(Database[Value]),BLANK())
Code:
Year count:=IF(DISTINCTCOUNT('Calendar'[Month])>1 && DISTINCTCOUNT('Calendar'[Year])=1,COUNT(Database[Value]),BLANK())
For the [Year count only] measure it is a similar result. ("Year count only" sheet).
But when I create a pivot table with both measures I get empty columns in each months for the [Year count only] measure and empty columns [Month sum only] in each subtotals. ("Both sum and count measure" sheet).
I uploaded my example file to Zippyshare.com - subtotal_only.xlsx
Regards,