Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Need help on this:
Jobs | Units |
A | 10 |
B | 20 |
C | 30 |
D | 0 |
Expected Output:
Jobs | New Units |
A | 10 |
B | 20 |
C | 30 |
D | Jobs A + B + C |
Solved! Go to Solution.
Hi, @thekimberlytan
Please try the below measure.
New Units Measure =
SUMX (
VALUES ( 'Table'[Jobs] ),
CALCULATE (
SWITCH (
SELECTEDVALUE ( 'Table'[Jobs] ),
"D", CALCULATE ( SUM ( 'Table'[Units] ), 'Table'[Jobs] IN { "A", "B", "C" } ),
SUM ( 'Table'[Units] )
)
)
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @thekimberlytan
Please try the below measure.
New Units Measure =
SUMX (
VALUES ( 'Table'[Jobs] ),
CALCULATE (
SWITCH (
SELECTEDVALUE ( 'Table'[Jobs] ),
"D", CALCULATE ( SUM ( 'Table'[Units] ), 'Table'[Jobs] IN { "A", "B", "C" } ),
SUM ( 'Table'[Units] )
)
)
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |