Forum Discussion

markefrody's avatar
markefrody
Icon for Post Patron rankPost Patron
2 years ago

Cumulative Rolling Sum and Quotient

Hi everybody,

 

I'm creating a DAX for monthly rolling quotient per month. Wherein (Sum of Target / Count Sum).  

 

Target table looks like this. Only months is used since these are the same target numbers that will be used in the succeeding years:


This is the table where the data of "Count Sum" looks like: 

 

When summarized into a table this is how it will look like. "Count Sum" is the sum of the "Count" column in the above-mentioned table:

 

Now I want to add a new column which is "On Track %" column wherein, "Count Sum" per month divided by the "Target" per month to be a cumulative rolling quotient by month. Below is how the finished output will look like:


Just for reference, here is how the formula looks like in Excel:

 

Here is the link containing the pbix sample data for reference:
https://www.dropbox.com/scl/fi/qq1vt0s1mjsar49izflwn/Sample-November-21-2023.pbix?rlkey=1t0o9nmb628kw0ucwd83xfagw&dl=0

Appreciate if you can help me in creating DAX for the above. Thanks.

Best regards,
Mark V

 

1 Reply