Forum Discussion
Return column name each time specific cell value is detected?
- 7 years ago
Hi Anonymous ,
you can select the three columns Attribute 1- Attribute 5 in Query Editor, then unpivot these column to row data like picture below, click "Close & Apply".
Then create new column1.
Column1= IF(Table1[Value]=1, Table1[Attribute],BLANK())
Finally, you can create calculated table using DAX below.
NewTable = ADDCOLUMNS(SUMMARIZE(Table1,Table1[Person]),"Expected", CALCULATE(CONCATENATEX(Table1, Table1[Column1], " ")))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
you can select the three columns Attribute 1- Attribute 5 in Query Editor, then unpivot these column to row data like picture below, click "Close & Apply".
Then create new column1.
Column1= IF(Table1[Value]=1, Table1[Attribute],BLANK())
Finally, you can create calculated table using DAX below.
NewTable = ADDCOLUMNS(SUMMARIZE(Table1,Table1[Person]),"Expected", CALCULATE(CONCATENATEX(Table1, Table1[Column1], " ")))
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous7 years agoNot applicable
This worked perfectly! Thanks for your assistance.