Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
addlahta
Frequent Visitor

Help with my Data Model - Comparing Prices

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

addlahta_0-1680567745900.png

 




0 REPLIES 0

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.