Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Creating a DAX IN Power BI to display description

I want to display description using a Measure.In below table simply i want the condition as follows,

If ID=1 and namd=ABC and Company=AA display Description.Can someone please help me on this?

 

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi, I found a way to do this in a measure.The formula is

    Phone_Complete = LOOKUPVALUE(Table1[Description],Table1[ID],"A",Table1[name],"ABC",Table1[Company],"AA")
    This works for me.Thank you all who took time to read my post and answer.

3 Replies

  • az38's avatar
    az38
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 

    you dont need a measure, you need New Calculated Column, be careful

    Column = IF(
    [ID]=1 && [name]="ABC" && [Company]="AA", [Description], BLANK() )
  • Anonymous ,Try like

    new column = if([ID]=1 && [name]="ABC" && [Company]="AA" , "My Company Name " & [Company],blank())
    new measure = if(max(table[ID])=1 && max(table[name])="ABC" && max(Table[Company])="AA" , "My Company Name " & [Company],blank())

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, I found a way to do this in a measure.The formula is

    Phone_Complete = LOOKUPVALUE(Table1[Description],Table1[ID],"A",Table1[name],"ABC",Table1[Company],"AA")
    This works for me.Thank you all who took time to read my post and answer.