Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 34 | |
| 33 | |
| 30 |