Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
@FR_26 , 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-bd52912a5b...
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.
@FR_26 , 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-bd52912a5b...
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.
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |