Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Cumulative Rolling Total (This month, last month, 2 months ago) Line Chart.

$
0
0

So I've read and read and wasted more hours than I care to admit trying to solve this problem. I am trying to show current MTD units of sales MTD for this month, which I have solved.

 

Cumulative Sale Total MTD = CALCULATE(COUNTA('Sales Occuring'[SaleId]), FILTER(ALL('Sales Occuring'), 'Sales Occuring'[Sale_Date__c] <= MAX('Sales Occuring'[Sale_Date__c]) && MONTH('Sales Occuring'[Sale_Date__c]) = MONTH([Today])))

 

Which gives me what I want to see.

 

Screen Shot 2016-09-23 at 12.39.05 PM.png

 

However what I want to show is MTD this month w/ MTD Last Month and 2 Months ago. For some reason I am only able to do this by aggregating the data into the Date Table which doesn't allow me to slice it properly and I know isn't the ideal solution. 

 

Below is the goal I am trying to reach.

 

Hopefully some people who have been helpful on related posts can help me solve this. I've got a feeling I am missing something very simple and have been too stubburn to figure it out on my own. Thanks in advance to anyone who can help.

 



 

 

Screen Shot 2016-09-23 at 12.43.13 PM.png

 

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles