Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Use Slicer to filter columns

Hi guys,

I have a dataset which looks like this.

I need to filter the years column in table visual

So when i use a slicer the year columns should show in the table visual.

Date Range: (start year - end year)

The year columns should be show in the table

Dataset:

Country2016201720182019
India2151
France436

1

  • Hi,

    Once you have unpivoted the dataset, create a matrix visual.  Drag Region to the row labels.  Drg Year to the column labels.

3 Replies

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

    You can Unpivot the Year columns so that the data looks like:

    Country Year Value

  • Anonymous's avatar
    Anonymous
    Not applicable

    I am using unpivot for one of the visual requirement.

    But I have to represent this data for the requirement in: region 2016 2017 2018 format

    • Ashish_Mathur's avatar
      Ashish_Mathur
      Icon for Super User rankSuper User

      Hi,

      Once you have unpivoted the dataset, create a matrix visual.  Drag Region to the row labels.  Drg Year to the column labels.