I am trying to assign a string to a number. It is a lookup column in DataVerse, but for what i am trying to do i decided to do a nested if to get the status. I know there is a column associated with the formattedvalue, but I don't know how to get it yet.
If expression:
if(equals(item()?['statusv2'],'1'),'Approved',if(equals(item()?['statusv2'],'2'),'Denied',if(equals(item()?['statusv2'],'3'),'Not Reviewed',if(equals(item()?['statusv2'],'4'),'Trip Approved;Business class airfare denied',if(equals(item()?['statusv2'],'5'),'Pending CVP Approval','n/a')))))
Data structure:
