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.
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.