Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
Request your guidance to solve this issue
We have a dashboard which shows sales for the day and month when we select a salesman from the slicer. We would like to have the sales during the last year on the same date for the selected salesman. i.e if sales of 02/12/2022 is $100 then it should also show sales for the date 02/12/2021. how can we make this happen
kindly advise
regards,
dsmitha
Solved! Go to Solution.
Hi @Anonymous ,
You can use SAMEPERIODLASTYEAR to accomplish this:
https://learn.microsoft.com/en-us/dax/sameperiodlastyear-function-dax
Please accept as solution if this answers the question- thanks!
Hi @Anonymous ,
You can use SAMEPERIODLASTYEAR to accomplish this:
https://learn.microsoft.com/en-us/dax/sameperiodlastyear-function-dax
Please accept as solution if this answers the question- thanks!
hi djurecicK2,
Thanks a lot, super simple solution
double kudoz
regards,
dsmitha
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |