Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Column Name Issue

I wanted to create a simple logic where i am just using "If" condition but after this its now showing or allwoing me to take any column name from the table.

 

For Example -

Table Name is "Details_Table" & Column name is "Country"

Now i want to show "Yes" text if country name is America 

  • Anonymous 

     

    Probably it is happening because you are trying to create a New Measure and not a New Column.

    Try the following formula

     

    New Column = IF (Details_Table[Country] = "America", "Yes", "No")

2 Replies

  • themistoklis's avatar
    themistoklis
    Community Champion

    Anonymous 

     

    Probably it is happening because you are trying to create a New Measure and not a New Column.

    Try the following formula

     

    New Column = IF (Details_Table[Country] = "America", "Yes", "No")

  • create New column with if condition it will take the column name