Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello All,
When I try to compare a sum with another measure, I get repeating False values using an if statement.
DC QOH is a value in the stock table
Treshold = round(CALCULATE(SUM('Stock'[DC QOH])) * 1.2, 0)
There are 3 tables: 1 fact table 'stock', 1 dim table 'location', 1 dim table 'item'
How do I fix my dax statement remove the repeating irrelevant rows?
Solved! Go to Solution.
Hello, Thank you for your help. I was able to solve my problem using another method. The issue due to 2 dim table columns being used in the matrix.
I used this video: https://www.youtube.com/watch?v=3vcKgN8HxjY
and
Hi @Anonymous ,
Maybe yes, you can provide some screenshot information and test data about the model for me to troubleshoot as soon as possible.
Best Regards,
Adamk Kong
Hello, Thank you for your help. I was able to solve my problem using another method. The issue due to 2 dim table columns being used in the matrix.
I used this video: https://www.youtube.com/watch?v=3vcKgN8HxjY
and
Hi @Anonymous ,
Try to modify your formula like below:
WithinThreshold =
VAR Threshold =
ROUND ( CALCULATE ( SUM ( 'Stock'[DC QOH] ) ) * 1.2, 0 )
RETURN
IF (
CALCULATE ( SUM ( 'Stock'[DC QOH] ), ALL ( 'Stock' ) ) < Threshold,
TRUE (),
FALSE ()
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This isn't working for my model, im still getting the same repeating values on my measure. Is this an issues with the way my model is set up?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |