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! It's time to submit your entry. Live now!
Hi everyone,
I want to use the function sameperiodlastyear:
SamePeriodLastYear = CALCULATE([Total Revenue];SAMEPERIODLASTYEAR('Date'[Date]))
but I keep receiving this error. "SAMEPERIODLASTYEAR expects a contiguous selections when the date column is not unique , has gasps or it contains time portion". Unfortunately I can't send the file here but I did the test in the pbix Customer profitability Sample which is available to download if you search for the name. Can you help?
Thank you for your attention
Solved! Go to Solution.
Hi @Anonymous ,
Maybe you can take a look at following blog about use date function to manually define filter range to instead time intelligence functions:
Time Intelligence "The Hard Way" (TITHW)
Regards,
Xiaoxin Sheng
Hi @Anonymous ,
Maybe you can take a look at following blog about use date function to manually define filter range to instead time intelligence functions:
Time Intelligence "The Hard Way" (TITHW)
Regards,
Xiaoxin Sheng
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 41 | |
| 39 | |
| 21 | |
| 20 |
| User | Count |
|---|---|
| 148 | |
| 110 | |
| 63 | |
| 37 | |
| 35 |