Forum Discussion
Previous Month only Blank
- 5 years ago
The reason I asked because in your sample data one of the numbers (43) has the most recent data up to Oct, the rest is up to Nov and that was the reason for this question. Anyhow here is the measure for the previous month:
Previous month Count = VAR __currentDate = EOMONTH ( MAX ( Sheet1[date] ), -1 ) RETURN CALCULATE ( COUNTROWS ( Sheet1 ), DATESBETWEEN ( Sheet1[date], EOMONTH ( __currentDate, -1 ) + 1, __currentDate ) )Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Anonymous can you put something in excel how you want to see the data, it is critical to understand to provide the solution, when you say a previous month, you can want to see the month or dates on the rows and then compare the count of that period with the previous month, no?
This is such a small piece of thing but because of not clear explanation, it is taking way too long, or maybe I'm not getting it.
Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
- Anonymous5 years agoNot applicable
If you take the above example , imagine the values under the observations column are values that may occur each month a number of times (random). If the current month is october 2020, I want to compare the count for each value for this month to the previous month, with the ultimate goal of creating a measure of relative change in order of magnitude.