Forum Discussion

PantherusNZ's avatar
PantherusNZ
Helper I
5 years ago
Solved

Convert List Table into usable data

I have a data import which lists the items created and closed in a given timeframe, which I want to display as a clustered graph in PowerBI, showing the items created and closed in separate columns i...
  • KNP's avatar
    KNP
    5 years ago

    Yes, exactly what you've said.

    To confirm it is going to work before you go to too much effort, you could just duplicate the main fact table and call one 'open' and one 'closed', join on the date table and build the visuals making sure you use the date from the date table. You may need to add a date only column for the resolve date so you have an appropriate type to join on (date to date).

     

    One thing I noticed from the screenshots, you may want to add a YearWeek column as an integer, e.g. 202119 this will give you something to use as a 'Sort by' column for your 'Year Week' text column (although may not be necessary given the way you've formatted it).

     

    Making this change to have two fact tables joined by the date table is what I'm referring to as "appropriate". 

     

    Let me know if you want the code for a PQ version of a date table.