Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
How can I achieve
when [Service Group Level 0] is "REVENUE" then [Actual Amount]
when [Service Group Level 0] is "COSTS + OVERHEADS" then [Cost Amount]
Solved! Go to Solution.
You can use nested IFs, or the syntax sugar version SWITCH.
Result = SWITCH([Service Group Level 0],"REVENUE",[Actual Amount],"COSTS + OVERHEADS",[Cost Amount])
getting an error. what can be the reason ?
a measure needs an aggregation. use MAX([Service Group Level 0]) , for example.
You can use nested IFs, or the syntax sugar version SWITCH.
Result = SWITCH([Service Group Level 0],"REVENUE",[Actual Amount],"COSTS + OVERHEADS",[Cost Amount])
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |