Forum Discussion
Anonymous
4 years agoNot applicable
Performance issue while a report start
Hi, I have a report with live connection (ssas tabular) i'm facing an issue when i start the report as some calculaction up to 50 seconds to show up. I did the performance analyzer on power bi and ...
- Anonymous4 years ago
Hi Anonymous,
Perhaps you can try to use the following measure formula to calculate results without summary across multiple tables:
formula = VAR currProduct = VALUES ( DimProduct[Product_id] ) VAR saleList = CALCULATETABLE ( VALUES ( Sales[InvoiceID] ), FILTER ( ALLSELECTED ( Sales ), Sales[Product_id] IN currProduct ) ) VAR forcastList = CALCULATETABLE ( VALUES ( Forecast[InvoiceID] ), FILTER ( ALLSELECTED ( Forecast ), Forecast[Product_id] IN currProduct ) ) RETURN CALCULATE ( COUNTROWS ( VALUES ( Invoice[CustoID] ) ), FILTER ( ALLSELECTED ( Invoice ), [InvoiceID] IN INTERSECT ( saleList, forcastList ) ) )Regards,
Xiaoxin Sheng
Anonymous
4 years agoNot applicable
Hi Anonymous,
Perhaps you can try to use the following measure formula to calculate results without summary across multiple tables:
formula =
VAR currProduct =
VALUES ( DimProduct[Product_id] )
VAR saleList =
CALCULATETABLE (
VALUES ( Sales[InvoiceID] ),
FILTER ( ALLSELECTED ( Sales ), Sales[Product_id] IN currProduct )
)
VAR forcastList =
CALCULATETABLE (
VALUES ( Forecast[InvoiceID] ),
FILTER ( ALLSELECTED ( Forecast ), Forecast[Product_id] IN currProduct )
)
RETURN
CALCULATE (
COUNTROWS ( VALUES ( Invoice[CustoID] ) ),
FILTER (
ALLSELECTED ( Invoice ),
[InvoiceID] IN INTERSECT ( saleList, forcastList )
)
)
Regards,
Xiaoxin Sheng