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
Hello, is there a way to create a measure for sameperiodlastyear so I can drag it into a dashboard? If I want to create a column in a dashboard with today's date, I can simply create a measured called Today and the DAX formula is Today = today(); however, I can't seem to do that with sameperiodlastyear.
This is what I want in my dashboard, with Date available in the data.
| Date | Sameperiodlastyear |
| 1/1/2020 | 1/1/2019 |
| 1/8/2020 | 1/8/2019 |
| 1/15/2020 | 1/15/2019 |
| 1/22/2020 | 1/22/2019 |
| 1/29/2020 | 1/29/2019 |
| 2/5/2020 | 2/5/2019 |
Solved! Go to Solution.
Hi @Anonymous ,
Try this measure:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 31 | |
| 19 | |
| 13 | |
| 10 |