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.
Good day,
I have noticed that February 2021 was displaying some unusual values.
After reading the blog "DAX Time intelligence and the 29th of February – #PowerBI" I discovered that I might be using the wrong approach to get the information I need.
Table required:
As seen above I need to show per day the cumulative sales last month, the cumulative sales this month and the ratio.
The measures are as follows:
Solved! Go to Solution.
Hi @Cyrilbrd,
Try measure as:
Measure =
CALCULATE(
SUM('Table'[Column2]),
PREVIOUSMONTH('Table'[Column1]))
Here is the output:
Best Regards,
Link
Hi @Cyrilbrd,
Try measure as:
Measure =
CALCULATE(
SUM('Table'[Column2]),
PREVIOUSMONTH('Table'[Column1]))
Here is the output:
Best Regards,
Link
@Cyrilbrd , Have you tried like
last MTD Sales = CALCULATE([Actual],DATESMTD(dateadd('Date'[Date],-1,MONTH)))
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
sorry this is still displaying data for 29, 30 and 31.
data comes from server via mysql so no sample available here.
would you need anything else?
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |