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 Community - I have an issue with a filter that is wreaking havoc on my report. Today a colleague asked me to filter a report by the field of the name of the person that entered the order.
So, using the field "Taken By", I dragged this into the filter pane, and when I started selecting different names in the filter check box, this is the error I received (in the matrix table that was being filtered). I have pinpointed the formula (below) that is causing the issue....I just do not know how to fix it.
NOTE that I think it may have something to do with using the Order Date in the formula. However, I have to use the Order Date (which is connected to my date table), otherwise the 2019 data gets all messed up. The very bottom image is how it looks without any filter being applied. Any help is appreciated!
Solved! Go to Solution.
Assuming that your Date table is marked as date table and covers your whole order date range, have you tried SAMEPERIODLASTYEAR instead?
NewMeasure =
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
It is likely that when you filtered to a single person, that person didn't have orders on all dates and triggered that error in your last_date variable. I would encourage you to calculate that variable w/o time intelligence functions (or use the Date table columns instead).
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@mahoneypat Hi Pat - Yes, I'm sure you are right. Problem is if I try to use my date table column for the "last date", then the 2019 data does not show up, which I don't understand since my Order Date is connected to my date table.
@mahoneypat Actually, after further review, I think it is my YOY % formula causing the problem. Still not quite sure how to fix other than just totaling up 2019 in one measure, and 2020 in another, and doing a YOY of the difference.
Assuming that your Date table is marked as date table and covers your whole order date range, have you tried SAMEPERIODLASTYEAR instead?
NewMeasure =
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@mahoneypat Thanks Pat....ultimately your feedback helped me change some formulas and got things working. I will post my solution later tonight for everyone's future reference in case someone has a similar problem they are trying to solve.
Cheers!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |