Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

"IF" DAX function SSAS live

Hello,   DAX total newbie here.  I'm trying to do a simple measure.  If the unit name (the column "DIM_ORG[UNIT_NM]") is "Contoso" then show "Contoso Inc", otherwise show the orignal value of the u...
  • Ashish_Mathur's avatar
    6 years ago

    Hi,

    Try this measure

    =IF(HASONEVALUE(DIM_ORG[UNIT_NM]),IF(VALUES(DIM_ORG[UNIT_NM])="Contoso","Contoso Inc",VALUES(DIM_ORG[UNIT_NM])),BLANK())