Forum Discussion

dunnj515's avatar
dunnj515
Regular Visitor
8 years ago
Solved

Slicer: Data values in one table equal column names in another

Hi. I'm new to Power BI. I'm trying to create a slicer using the values in one table to toggle which columns display in another table. The values in table 1 are equal to the column name in table 2. I...
  • Anonymous's avatar
    Anonymous
    8 years ago

    In your data, you want to make sure that you import it into your model as unpivoted.  You can do this in the Query editor under the Tranform area of the ribbon.  You want to get your data to be in a format such that each row has the columns Name, State, and Amount.

     

    Once you have that imported you can create a slicer based on your State Column, which will display just a distinct list of your imported state values.

     

    Next you can create a Matrix visual.  Put Name into the rows. Put State into the columns and put Amount into value and select the aggregation of Sum.