Forum Discussion

jj14x's avatar
jj14x
Advocate II
9 years ago
Solved

Build summary visualization showing orders completed/issued in given week

Hi,     I'm relatively new to Power BI, so I'm hoping there is an easy solution to this request. I have a set of 5 similar tables - each table is for a specific product, and will have at least the ...
  • dkay84_PowerBI's avatar
    9 years ago

    Personally I would add a custom column to each table in the query editor with the name of the product, then append all tables into one.  Any columns that don't exist across tables will have "null" values or blank for the tables where that column didn't exist.  Then, I would also create a date table that spans the earliest and latest date from this master table. 

     

    After you create relationships between the date table and fact table (you will have one active and two passive relationships), you will need to create some measures depending on the relationship.  With the active relationship, you could simply drag the relevant field to the visual and aggregate as a count, but for the inactive relationships you will need to create a measure using the USERELATIONSHIP function as an argument.

     

    Learn more about date table:

    https://community.powerbi.com/t5/Desktop/Date-Dimension-Table-that-Dynamically-Pulls-Start-and-End-dates/td-p/76870

     

    Learn more about USERELATIONSHIP:

    https://www.sqlbi.com/articles/userelationship-in-calculated-columns/