-
The enclosed file has two tabs, FLAT using a “Flat Table” and STAR a Star Schema.
-
Both are the same datasets.
-
The measures are under _PayablesMeasures
-
The measures which start with * are adjusted for for STAR, the ones without are for FLAT.
-
I had to adjust some filters for the * measures, but I don’t think that will have affected performance.
For example:
FLAT OverdueAmount
_A0_ OverdueAmount =
VAR SelectedColumn = SELECTEDVALUE(SwitchLocalCurrency[CurrencyID])
Var InvoiceValue =
IF(
ISBLANK([Days Left]),
BLANK(),
SUMX(
FILTER(_FACT_BSEG_AP_FLAT,
[Days Left] < 0
&& _FACT_BSEG_AP_FLAT[H_BLART_DocumentType]<>"KZ"),
[_A0_ OutstandingAmount]
)
)
RETURN
InvoiceValue
STAR OverdueAmount
*_A0_ OverdueAmount =
VAR SelectedColumn = SELECTEDVALUE(SwitchLocalCurrency[CurrencyID])
Var InvoiceValue =
IF(
ISBLANK([*Days Left]),
BLANK(),
SUMX(
FILTER(ALL(DIM_H_BLART_DocumentType[H_BLART_DocumentType]),
[*Days Left] < 0
&& [H_BLART_DocumentType]<>"KZ"),
[*_A0_ OutstandingAmount]
)
)
RETURN
InvoiceValue
- I have added the same columns to the tables in both tabs.
The Problem:
Why does the Star Diagram give a “Query has Exceeded the available resources” error, whereas the Flat Table does not?
Note:
I realise there are probably some things wrong with my measures, something which I am still in the process of figuring out. But I don’t think that can be the cause this error.
Demo File:
StarVSFlat_Demo.pbix (1.4 MB)