March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am building a report, and my Data Model is causing me a headache
I have 6 Tables
Promo's TW - Columns: PromoID, Discount %, Start Date, End Date and Dept
All Promo Tables (all promos in the DB) - Columns: PromoID, SKU, SKU Price, Start Date, End Date
SKU Price History - Columns: Date, SKU, Lowest Price, Dept
Date Table (Unique Dates)
SKU Table (Unique SKU's)
DeptTable - Department Id, Est. Days
The ID is that For each Promo in PROMO TW i want to show:
The SKU's contained in the Promo
the Start Date
Measure: Lowest Price for that SKU based for dates between 'Start Date minus Est.Days' and 'Start Date minus 1)
SKU Promo Price (from the All Promos Table)
SKU Promo Price divided by the LOWEST PRICE Measure above
Below is a rough sketch of the Model I have
User | Count |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |