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 - I created tis kind of complicated measure to calculate "the Amout to meet goal" -
Could you please help me solve this problem, if it's possible - Thank you in advance.
Solved! Go to Solution.
I did it!!! I used the SUMMARIZE function and that solve the problem !!
Hi @Anonymous
How about this measure:
AmtToMeetGoal = VAR sum1 = IF ( ( SUMX ( DISTINCT ( 'Sub List'[ContractNumber] ), ( MAXX ( DISTINCT ( 'Sub List'[ContractNumber] ), MAX ( 'Sub List'[GoalDollars] ) ) ) ) ) > [AmountB4SlicerPeriod], ( ( SUMX ( DISTINCT ( 'Sub List'[ContractNumber] ), ( MAXX ( DISTINCT ( 'Sub List'[ContractNumber] ), MAX ( 'Sub List'[GoalDollars] ) ) ) ) ) - [AmountB4SlicerPeriod] ), 0 ) RETURN IF ( HASONEVALUE ( 'Sub List'[ContractNumber] ), Sum1, SUMX ( 'Sub List', sum1 ) )
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I did it!!! I used the SUMMARIZE function and that solve the problem !!
It works but it gives me the wrong total :(. The amount that listed on column is correct but for some reason when it comes to total, it just doesn't sums it up right.
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 |
---|---|
62 | |
55 | |
55 | |
36 | |
34 |
User | Count |
---|---|
76 | |
73 | |
46 | |
45 | |
43 |