DAX function does not aggregate values not displayed on chart/X-axis

Paul-NYS

New Member
Joined
Feb 6, 2012
Messages
23
Hi Everyone
I have a Powerpivot chart and table in an Excel sheet. The chart/table show cumulative percentage across a range of months on the x-axis. On the x axis, the range of months is: 0,1,2,3,4,5,6,12,18,24,30,36...... I would like to have the rows and data for the 1,2,3,4,5 rows available, but I don't typically display them, only the 6 month intervals.

I started using a DAX forumula below which cumulatives the numbers into a percent, but the problem is that I have to show all the months on the X-axis (including 1-5 values) for it to cumulate the numbers into percents correctly. If I hide the 1-5, it does not add the values for these into the overall cumulative percent.

Has anyone come across this before or any ideas to modify the below formula to accommodate this?

Paul

=(CALCULATE(count(s1Counties[entity_id]),FILTER(ALLSELECTED(s1Counties),s1Counties[exitMonthCategory] <=MAX(s1Counties[exitMonthCategory]))))/
(CALCULATE(COUNTROWS(s1Counties),ALL(s1Counties[exit],s1Counties[exitMonthCategory])))
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,223,958
Messages
6,175,632
Members
452,661
Latest member
Nonhle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top