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.
I am working to build a measurement that looks at sameperiod last month and presents revenue total...but when I do it, I get the right information on each day except the last day on my date table shows the FULL revenue for the previous month.
Here is my formula:
Solved! Go to Solution.
Hi @ciken
Your issue should be caused by logic of your measure [Order Value (EP + Amazon)].
Here I have a test and I use sum function to get result in [MTD Last Month] expression. This code will work well.
MTD Last Month =
CALCULATE(SUM(Sheet11[Value]),DATEADD(DATESMTD('Calendar'[Date]),-1,MONTH))
Result is as below. Today is 2021/11/19. We can get correct MTD in last month by this measure.
Please chech the filter in [Order Value (EP + Amazon)]. Or you can share a sample with me to make it easier for me to understand your data model.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ciken
Your issue should be caused by logic of your measure [Order Value (EP + Amazon)].
Here I have a test and I use sum function to get result in [MTD Last Month] expression. This code will work well.
MTD Last Month =
CALCULATE(SUM(Sheet11[Value]),DATEADD(DATESMTD('Calendar'[Date]),-1,MONTH))
Result is as below. Today is 2021/11/19. We can get correct MTD in last month by this measure.
Please chech the filter in [Order Value (EP + Amazon)]. Or you can share a sample with me to make it easier for me to understand your data model.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ciken You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |