Forum Discussion
Rathod
2 years agoFrequent Visitor
Return second lookup value instead of first value
Hi All, Could someone please assist me in retrieving the second lookup value instead of the first one? Here are the details: Table Name: Roles_EmailID When the user "[email protected]...
- 2 years ago
Hi Rathod -The rank must correctly differentiate between the different email IDs associated with each RolesEmailid.
create a measure:
SecondEmailID =CALCULATE(FIRSTNONBLANK(abcdef[Email_IDS], 1),FILTER(abcdef,abcdef[RolesEmailid] = USERPRINCIPALNAME() &&abcdef[EmailRank] = 2))Verify that the value returned by USERPRINCIPALNAME() matches exactly with the values in the RolesEmailid column.
Hope this helps
- 2 years ago
Hi Gautam,
Thanks, its working fine
rajendraongole1
Super User
2 years agoHi Rathod -The rank must correctly differentiate between the different email IDs associated with each RolesEmailid.
create a measure:
SecondEmailID =
CALCULATE(
FIRSTNONBLANK(abcdef[Email_IDS], 1),
FILTER(
abcdef,
abcdef[RolesEmailid] = USERPRINCIPALNAME() &&
abcdef[EmailRank] = 2
)
)
Verify that the value returned by USERPRINCIPALNAME() matches exactly with the values in the RolesEmailid column.
Hope this helps
Rathod
2 years agoFrequent Visitor
Hi Rajendra,
Thanks for your swift response, i tried with your dax but unfortunatly getting below error