Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a fairly large dataset of retailer sales info. I import last 1 week of sales each week and append to my Master "Retailer POS" table". However, the report from the retailer portal only includes items that showed sales data for the given week. So at times there is missing data for smaller or slower moving items that may not have sales data each week that come into my datatable.
I have a "CalendarMaster" and a separate "ItemMaster" table that links retailer POS data linked with a key field "UPC" in my item master. I have a table as a placeholder where all my calculations are stored called "Calculations".
All my report calculations for rolling periods (CY, YAG, L4, L4 YAG, etc.) work well at higher levels where these individual items or small brands don't break the visualizations due to gaps in sales because they are rolled into larger populations. But if I filter to smaller fields (Brand, item level, etc.) it doesn't work as well due to gaps in weekly sales.
Anyone have tips for creating a summarizing calculation that achieves similar time intelligence as DATEADD but is for a sum of a range of dates that doesn't require each week to be populated. I.e. Sum of week a, week b, week d etc. that still works if week C is missing? Or way to calculate sales a zero if it is missing a week of data?
Also happy to hear suggestions on how to create a new measure or calculation that I can use to filter the visual to automatically exclude the items that tend to keep my visual from working.
My RetailerPOS master is quite large (7MM lines) so posting the PBIX file is a bit challenging.
Hi @Anonymous ,
Please try to create another table with all values of "2021 PD 01 WK 1 (01)", "2021 PD 01 WK 2 (02)", "2021 PD 01 WK 3 (04)", "2021 PD 01 WK 4 (04)" like this:
NewTable =
DISTINCT ( 'YourTable'[Weeks] )
And then, create relationship between YourTable and the NewTable based on the two week columns.
Finally, replace the week column in YourTable with the week column in the NewTable in the Matrix visual.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Unless I'm not understanding your comment "on the two week columns" I have a similar set up now with a table that contains all unique weeks with no duplicates (see attached relationship). My issue is that my data source doesn't generate a row in the export from their system for that individual item if there were no sales on a given week. So my data source has plenty of holes in it for missing weeks by location, but I just need for my calculation to "overlook" a missing week by either adding in missing data, or replacing blanks, or using a range of unique week rank vs time intelligence formulas.
Relationships with a Unique Week Table
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |