Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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 |
---|---|
128 | |
108 | |
99 | |
64 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |