Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to control table/matrix date columns with filter?

Hi I have two tables from different data sources that look like this, with values under month columns.     Is it possible to set up a date/month filter to control the columns that show on bo...
  • PaulOlding's avatar
    PaulOlding
    5 years ago

    I'd advise a bit of remodelling in power query so the data's easier for Power BI to work with.

     

    First highlight all the month columns then click Unpivot Columns

    The data will now look like this:

    Add a Custom Column to have the source 

     

    Repeat the same steps for your second table.

    Finally, use 'Append Queries' to get a single table with all the data.

     

    Now you can use a matrix, or any other visual that makes sense, to visualise the data and have a slicer on Attribute (you'll probably want to rename that column in Power Query) to filter just selected months