Forum Discussion

Ishmale's avatar
Ishmale
Helper I
2 years ago
Solved

Using Switch Statement to dynamic change Table Data; error: The expression refers to multiple column

Hello Community, I hope this request finds you all in good Spirits. I am in need of some help.  Purpose:  I am creating a dashboard that will allow frontline supervisors to quickly check their de...
  • christinepayton's avatar
    2 years ago

    It sounds like you need to unpivot those columns in Power Query. You can duplicate your query to mak a dimension table out of it and then relate it back to your original records on the ID column. Remove all columns except the type columns and ID, then right click on ID and "unpivot other" - this will put all of the type columns into a single column. Then create a relationship between the tables, making sure the filter direction is "both" so that the dimension can filter the original table, and you should be able to slice on it.