Forum Discussion
IFERROR and SSAMEPERIODLASTYEAR gives error
Hi Gugge ,
The IFERROR() function can‘t detect this error. Would you mind sharing your .pbix file? We may need to modify the formula of the measure.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi v-lionel-msft ,
I cant share the pbix as it contains to much sensitive information.
I might have been unclear on my issue, the filters I'm using is the Chiclet slicers as below to help the users to easy do the filtering.
It's not a big issue in it self, more of an annoyance that an error is showing when only a month is selected. I've instructed the users to always choose a year also, but I like to have reports as user friendly as possible.
- v-lionel-msft6 years ago
Community Support
Hi Gugge ,
When your slicer filters the data, the SAMEPERIODLASTYEAR function will be passed the wrong parameter, so the software reports an error.
Maybe you can consider using other functions or adding conditional judgment statements to this measure.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.