Forum Discussion

ablacknerd's avatar
ablacknerd
Icon for Helper I rankHelper I
6 years ago
Solved

Use Slicer to dynamically change between Date Columns in Table Visual

I need to create a table visualization that shows either the request created within the past 20 days or request that are completed within the last 20 days using a slicer or chiclet with two options: ...
  • lkalawski's avatar
    lkalawski
    6 years ago

    Hi ablacknerd

    The easiest solution is to unpivot the Created and Completed columns

     

    Add the Request and value fields to the table, and add a filter for value - the last 20 days.

    Use Attribute as a slicer.

     



    _______________
    If I helped, please accept the solution and give kudos! 😀

  • lkalawski's avatar
    lkalawski
    6 years ago

    ablacknerd

    Yes, you can do this in Power Query editor. 

    When you download data to Power BI, click Edit or Transform, and a Power Query window will appear.
    If you have closed it, click on the Transform Data icon.

    In the Query editor select (with Ctrl) two columns and click unpivot Columns and that's it. Apply changes and do next steps.



    _______________
    If I helped, please accept the solution and give kudos! 😀