The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance 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])
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
7 |