Forum Discussion
Measure creation to compare values from another table
- 4 years ago
Hi Anonymous ,
According to your description, I create a sample.
Fact table:
Dimension table:
Here's my solution, create a measure.
Measure = IF ( MAX ( 'Fact'[Value] ) > MAXX ( FILTER ( ALL ( 'Dimension' ), 'Dimension'[level] = MAX ( 'Fact'[level] ) ), 'Dimension'[Threashold] ), 1, 0 )Put the measure in the Fact table visual filter and let its value to 1, the Fact table will be filtered fine.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
According to your description, I create a sample.
Fact table:
Dimension table:
Here's my solution, create a measure.
Measure =
IF (
MAX ( 'Fact'[Value] )
> MAXX (
FILTER ( ALL ( 'Dimension' ), 'Dimension'[level] = MAX ( 'Fact'[level] ) ),
'Dimension'[Threashold]
),
1,
0
)
Put the measure in the Fact table visual filter and let its value to 1, the Fact table will be filtered fine.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Thank you for your answer.