Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi Team,
I have two tables, Fact and dimension tables. Both tables having 'level' (int) column. Dimension table having threashold values for 'level'. I want to create measure where I will get the 'level' from Fact table and compare it with dimension threashold and if the values exceeds the threashold values then I want to show that in the chart.
Thank you in advance!
Regards,
Jyoti Pawar
Solved! Go to Solution.
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.
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.
Thank you for your answer.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |