Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
So I have our salespeople in a treemap acting as a slicer over the rest of the canvas. I am showing gross revenue and avg. job revenue brought in for this year. I am comparing it to last year using SAMEPERIODLASTYEAR--but i encounter an error when I make a selection on our salespeople.
I'm pretty sure the formula itself is right, but I'd like to understand what's going on behind the scenes that's giving me the error--presumably a filter-context ...?
Thanks in advance
Solved! Go to Solution.
Hi @cwayne758,
it's like the error message tells you: SAMEPERIODLASTYEAR requires a contiguous selection of dates in your slicers. If you use the ctrl. key to select different, non-contiguouse dates, than this function does not work, as you noticed.
Regards,
Lars
I have used DATEADD -1 successfully in the past to bypass this particular error when the cause was not immediately apparant.
Are you selecting specific date ranges (maybe skipping holidays or weekends)? This would throw off the calculation and cause the error. The error is basically saying that the dates have to be continuious from start to end with no days skipped.
K
Proud to be a Super User!
I have used DATEADD -1 successfully in the past to bypass this particular error when the cause was not immediately apparant.
Are you selecting specific date ranges (maybe skipping holidays or weekends)? This would throw off the calculation and cause the error. The error is basically saying that the dates have to be continuious from start to end with no days skipped.
K
Proud to be a Super User!
Hi @cwayne758,
it's like the error message tells you: SAMEPERIODLASTYEAR requires a contiguous selection of dates in your slicers. If you use the ctrl. key to select different, non-contiguouse dates, than this function does not work, as you noticed.
Regards,
Lars
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |