Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I follow the star schema having the DIM tables "Item" and "Supplier", as well as the FACT table "Price".
These are the measures I use:
Measure 1 =
CALCULATE(MAX('Price'[Start Date]),FILTER('Price','Price'[Start Date]<>MAX('Price'[Start Date])))
Measure 2 =
With measure 1 I determine the second to last date. With measure 2 I use measure 1 to determine the price existing on the second to last date.
Generally it works, but the performance of the table is very slow.
In contrast, when I merge "Item" and "Supplier" with the "Price" table, thus having one large table with everything, the performance is fast. However, then I lose the benefits of the star schema.
Why is the performance to slow under the star schema and how can I make it fast?
The report table uses "Item" table (colums article number, article description), the "Supplier" table (column supplier name) and the "Price" table (columns unit, minimum quantity) as well as the mentioned measures.
Solved! Go to Solution.
@TimmK , Try with these changes
Measure 1 =
CALCULATE(MAX('Price'[Start Date]),FILTER('Price','Price'[Start Date]< MAX('Price'[Start Date])))
Measure 2 =
VAR SL_ = [Measure 1]
RETURN
CALCULATE(SUM('Price'[Price]),filter('Price', 'Price'[Start Date]=SL_))
@TimmK , Try with these changes
Measure 1 =
CALCULATE(MAX('Price'[Start Date]),FILTER('Price','Price'[Start Date]< MAX('Price'[Start Date])))
Measure 2 =
VAR SL_ = [Measure 1]
RETURN
CALCULATE(SUM('Price'[Price]),filter('Price', 'Price'[Start Date]=SL_))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 14 | |
| 12 | |
| 9 | |
| 8 | |
| 7 |