DAX Formula for Cumulative and %Cumulative

melq64

New Member
Joined
Aug 21, 2017
Messages
49
Hi,

I have the following dax formulas for my cumulative total and % cumulative. Its working but not showing the correct cumulative in the technical sense

Total Items Delivered:
TotalItemsDelivered:=CALCULATE(COUNTROWS('DistProfile v1-3'),FILTER('DistProfile v1-3','DistProfile v1-3'[DeliveryDate]<>BLANK()))

Cumulative Total Items Delivered:
CumulativeTotalDelivered:=IF(MIN(dCalenderDelivery[Date])>CALCULATE(MAX('DistProfile v1-3'[DeliveryDate]),ALL('DistProfile v1-3')),BLANK(),CALCULATE(COUNTROWS('DistProfile v1-3'),FILTER(ALL(dCalenderDelivery),dCalenderDelivery[Date]<=MAX(dCalenderDelivery[Date]))))


%Cumulative Total Items Delivered:
%CumulativeTotalDelivered:=DIVIDE([CumulativeTotalDelivered],CALCULATE([CumulativeTotalDelivered],ALLSELECTED('DistProfile v1-3'[Delivery Days])))


Here is screenshot of the output pivot table based on the above % Cumulative formula:

view
https://drive.google.com/file/d/1weSOA0OxIu5QiC5WU_Q_TMK2DWZhhrnk/view?usp=sharing


Appreciate any help:)
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

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