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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to resolve a performance issue of my measure

Hello,

I have a report with live connection (ssas tabular) I'm facing an issue when i start the report as some calculation up to 1 minute to show up.

After troubleshooting , i find that i have a measure that is slower that another as bellow the definition of my measure :

 

The measure as below run in 7 s

CALCULATE (
     [NbOrders],
     FactSales[IsValid] = 0
 )

 

Then i have another measure it takes 48 s

 

CALCULATE (
     [NbOrders],
     FactSales[IsValid] =1
 )

 

Why the first measure is faster than another even if it's same with different filter 

 

MR_Robot92_0-1655739393961.png

 

 

Thanks

5 REPLIES 5
Anonymous
Not applicable

@tamerj1 

 

As bellow the code of [NbOrders]

CALCULATE (
    [Cnt],
     SUMMARIZE (
        Sales,
        DimProduct[Product_id]
    )
    ,SUMMARIZE (
        Forecast,
        DimProduct[Product_id]
    )
)

The definition of Cnt as bellow :

 

Cnt :=  DISTINCTCOUNT ( Invoice[CustoID] )

 

Thanks

Hi @Anonymous ,

 

Can you try this code for [NbOrders]:

CALCULATE (
    [Cnt],
    FILTER ( Sales, [Product_id] IN VALUES ( Forecast[Product_id] ) )
)

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Anonymous 

can you please share a screenshot of your data model?

Anonymous
Not applicable

@tamerj1 

The model is huge and the information is sensitive . Can i do it in private ?

tamerj1
Super User
Super User

@Anonymous 

What is the code of [NbOrders]?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.