Forum Discussion
Measure to return rows based on column conditions
- Anonymous4 years ago
Hi Anonymous ,
I create a sample to have a test. My sample is the same like yours.
Measure:
Filter Measure = VAR _Type_List = CALCULATETABLE ( VALUES ( 'Table'[Type] ), ALLEXCEPT ( 'Table', 'Table'[QuoteId] ) ) RETURN IF ( "Final" IN _Type_List, IF ( MAX ( 'Table'[Type] ) = "Final", 1 ), IF ( MAX ( 'Table'[Type] ) = "Estimated", 1 ) )Create a table visual , add this measure into visual level filter and set it to show items when value =1.
Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Unfortunately I am receiving this error when using that measure as a filter:
Hi Anonymous ,
I create a sample to have a test. My sample is the same like yours.
Measure:
Filter Measure =
VAR _Type_List =
CALCULATETABLE (
VALUES ( 'Table'[Type] ),
ALLEXCEPT ( 'Table', 'Table'[QuoteId] )
)
RETURN
IF (
"Final" IN _Type_List,
IF ( MAX ( 'Table'[Type] ) = "Final", 1 ),
IF ( MAX ( 'Table'[Type] ) = "Estimated", 1 )
)
Create a table visual , add this measure into visual level filter and set it to show items when value =1.
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.