Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi, I am looking to add a new column that will go through all of the 'Scores' I have and check what type it is. If it is Type A I want to divide the 'Score' by 50 and if it is Type B to divide the 'Score' by 25.
Exmaple below:
Project | Score | Type | Answer |
Project 1 | 100 | A | 2 |
Project 2 | 75 | B | 3 |
Project 3 | 25 | A | 12.5 |
Solved! Go to Solution.
New calculated column:
NewColumn = SWITCH(
TRUE(),
[Type] = "A", DIVIDE( [Score], 50, 0 ),
[Type] = "B", DIVIDE( [Score], 25, 0 ))
This should get you what you asked for.
Regards,
Hi, it seems putting in the word SWITCH is giving me an error
"Expression.Error: The name "SWITCH" wasn't recognized. Make sure it's spelled correctly."
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
98 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
157 | |
101 | |
60 | |
43 | |
40 |