Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
I am creating a powerbi report to see this year and last year sales.
I have Slicer for date filter, so that I want to see this year Sales and last year Sales.
I used the Dax measure :
but unfortunately I am getting the below format, I am getting the values for each date, but not for year and , 'month'year'
and my rows are as below:
where
I was wondering if there ia way to fix this.
Any help is much appreciated! Thank you
@amitchandak Thank you for your response.
Unfortunately, I tried changing the date but still having the same issue!
@Deeins , You have to use date table, marked as date table having 1-m Join with you table
Last year = CALCULATE(
SUM(maintable[total_sale_amount]),
SAMEPERIODLASTYEAR(Date[Date])
)
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 |
---|---|
102 | |
88 | |
78 | |
71 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |