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.
And I have a simple date table and a relationship between that date table and the 'Action_Date' field.
Thanks for your help!
Hi, @APM
You can try using these two functions to help you.
example:
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@APM , if there is not filter used
this year =
CALCULATE(
SUM(STD_RETAIL_SALES_REPORT[Selling_Price]),filter('Date', year('Date'[Date]) = Year(Today())))
last year =
CALCULATE(
SUM(STD_RETAIL_SALES_REPORT[Selling_Price]),filter('Date', year('Date'[Date]) = Year(Today()) -1 ))
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Hey,
But where in the formula might I specify that the period start is 12/1/2020 and 12/01/2021?
I tried to adapt your formula to this with no luck:
In essence,
I just want to be able to obtain sales from
12/1/2020 to 'today' last year (and for today that would be 3/28/2021)
and
12/1/2021 to 'today' (3/28/2022).
In excel this would be absurdly simple, in DAX it's turning out to be quite the conundrum.
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |