Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have few id's, where I want to create a new column named docrot using the below expressio, where Doctor1 and 2 are assigned using id's and others by name using Lookupvalue.
IF id in("1234";23456";"565754") then "DOC1" else if id in("4566";4567") then "DOC2" ;lookupvalue("Docname"[table1];"name"[table1];"Docname"[table2])
Solved! Go to Solution.
@Prash546 , Try Like
switch( true(),
id in{"1234","23456","565754"} , "DOC1" ,
id in{"4566","4567"} , "DOC2" ,
lookupvalue("Docname"[table1],"name"[table1],"Docname"[table2])
)
@Prash546 , Try Like
switch( true(),
id in{"1234","23456","565754"} , "DOC1" ,
id in{"4566","4567"} , "DOC2" ,
lookupvalue("Docname"[table1],"name"[table1],"Docname"[table2])
)
Hello Amit, this worked, is there any resoruce where I can learn this functions and also learn Power BI more thoroughly. Thanks.
User | Count |
---|---|
101 | |
90 | |
78 | |
70 | |
69 |
User | Count |
---|---|
110 | |
96 | |
95 | |
74 | |
71 |