Forum Discussion
Comparing selected month automatically with previous month
- 8 years ago
Hi gdexter,
Based on my understand for your requirement, I made a test.
You could create two measures like below.
current date = CALCULATE(SUM('table'[Sales]))
last month = CALCULATE(SUM('table'[Sales]),DATEADD('table'[Date],-1,MONTH))So that you could get the output below.
For more details, you could have a reference of this attachment.
If you still need help, please share some data sample witch could reproduce your scenario, so that we can help further investigate on it?
Best Regards,
Cherry
Hi gdexter,
Based on my understand for your requirement, I made a test.
You could create two measures like below.
current date = CALCULATE(SUM('table'[Sales]))
last month = CALCULATE(SUM('table'[Sales]),DATEADD('table'[Date],-1,MONTH))
So that you could get the output below.
For more details, you could have a reference of this attachment.
If you still need help, please share some data sample witch could reproduce your scenario, so that we can help further investigate on it?
Best Regards,
Cherry
- gdexter8 years agoFrequent Visitor
Hi Cherry,
Thanks for the advice and apologies for my lateness in getting back to you.
The pie chart I attached above is calculated by measuring the number of occurences of the word "EARLY", "LATE" and "ONTIME". These are non-numerical values, so I used COUNT in the place of where you used SUM.
Then it worked fine, thanks very much!
Best,
Gdextor