Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello, I am trying to calculate the total sales of the previous month. For example, today is Feb 8 and I want to see the total sales from all of January. Below is the formula I am using but I am getting the previous month from today, so Jan 8 - Feb 8. What am I doing wrong?
Solved! Go to Solution.
I was able to get the calculation to work by using the following DAX:
I was able to get the calculation to work by using the following DAX:
@jpriemer , Please use date table in this case
Value MTD =
calculate(SUM(Opportunity[Actual Value]),PREVIOUSMONTH('DAte'[Date]))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Thank you so much for the quick response. Unfortunately, I am still getting values Jan 8 - Feb 8?
Here is my edited formula:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |