Forum Discussion
filter OR with multiple options
- 5 years ago
Hi, Rjesak
Please check the below picture and the sample pbix file's link down below.
Instead of having extra columns for a year in the fact table, try having a dim-calendar table like the below, and create a measure like below.
Count Unique Seq =
IF (
ISFILTERED ( 'Calendar' ),
CALCULATE (
COUNTROWS ( data ),
FILTER (
data,
AND (
data[receipt_date] <= MAX ( 'Calendar'[Date] ),
OR (
data[closure_date] >= MIN ( 'Calendar'[Date] ),
data[closure_date] = BLANK ()
)
)
)
)
)https://www.dropbox.com/s/d26henlpvp41c87/rjesakv2.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Sorry everyone, I'm killing myself on a project so I'm working through these one by one to determine which is going to be best. I apologize for the delay.
- v-kkf-msft5 years agoCommunity Support
Hi Rjesak ,
Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz