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 have a dataset for 2 years, which includes Categories, sub-categories and Products list. I want to see product/category-wise comparison of ACT vs LY. How can I do that? I can compare CY vs LY using sameperiod last year DAX formula. want something like below
Act | LY Same period | |
Category 1 | ||
Category 2 | ||
Category 3 | ||
Category 4 |
Appreciate your help!
Solved! Go to Solution.
@Anonymous , With help from a date table you use trailing year measure for LY
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
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.
Hi,
You may download my PBI file from here.
Hope this helps.
Thanks, Amit,
I have a calendar table like below:
and a dataset with column heading like below:
I want a chart showing product-wise CY YTD ACT and LY YTD Same period like below :
Currently, I can show Monthwise differences like below:
But I need a product-wise comparison. What should I do?
Hi,
Share the link from where i can download your PBI file.
Hi Ashish, Thanks.
Please find the link below:
Best Regards,
Hi,
You may download my PBI file from here.
Hope this helps.
Hi Ashish, thanks for the solution 👍
You are welcome.
@Anonymous , With help from a date table you use trailing year measure for LY
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
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.
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |