Forum Discussion
FILTER function resulting in error - HELP
- 3 years ago
change your date to
date(2023,01,01)
ok you don't need two tables. You just have to check if a product and date existing in the prior period. You can set your slicer to filter on the current period
the results I got were
measure assumes you want
1. if the period you choose in your slicer is the earliest period you have data for, then return no rows
2. if the product and date exist in the prior month (period) then do not show it
3. if the product and the date do not exist in the prior month then show that row
bsheffer Thank you so much! This helped tremendously. One more question...If I want to now see the opposite...where it exists in the previous month but does not exist in the current month, what would that look like?
- bsheffer3 years agoContinued Contributor
I don't think you can as the slicer is filtering the table to the accrual date. You can't show the prior period on that filtered table.
- aflip3 years agoFrequent Visitor
I created a new forum message detailing exactly what I want to do here. Thanks so much for your help! Take a look at this if you have time:
https://community.powerbi.com/t5/Desktop/Need-to-create-measure-that-compares-between-the-selected-date/m-p/3108148#M1053430