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, in below table, I would like to retrieve a string value by comparing to the other 3 columns, Category, Rank & Pin with below conditions:
1. If the Rank is "OE", then the result shall be "OE".
2. If the Pin is Stud or Studless, then the result shall be "Stud" or "Studless".
3. Else, it shall follow Category, either "PR" or "LT".
No | Category | Rank | Pin | Desired Outcome |
Y1 | PR | RE | Others | PR |
N3 | PR | RE | Stud | Stud |
P1 | PR | OE | Others | OE |
S1 | LT | RE | Studless | Studless |
A2 | LT | RE | Others | LT |
Thanks.
Regards, LC
Solved! Go to Solution.
@Tan_LC , You can get the desired result by creating a custome column go to modelling view select new column
dax
DesiredOutcome =
SWITCH(
TRUE(),
'YourTable'[Rank] = "OE", "OE",
'YourTable'[Pin] = "Stud", "Stud",
'YourTable'[Pin] = "Studless", "Studless",
'YourTable'[Category] = "PR", "PR",
'YourTable'[Category] = "LT", "LT",
BLANK()
)
Replace table name
Proud to be a Super User! |
|
@Tan_LC , You can get the desired result by creating a custome column go to modelling view select new column
dax
DesiredOutcome =
SWITCH(
TRUE(),
'YourTable'[Rank] = "OE", "OE",
'YourTable'[Pin] = "Stud", "Stud",
'YourTable'[Pin] = "Studless", "Studless",
'YourTable'[Category] = "PR", "PR",
'YourTable'[Category] = "LT", "LT",
BLANK()
)
Replace table name
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
14 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |