Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
105 | |
79 | |
71 | |
66 |
User | Count |
---|---|
141 | |
107 | |
100 | |
82 | |
74 |