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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
kapil512
Helper II
Helper II

Increase the Performcance for DAX measure.

Hi,

 

I have one Fact table which has 36 millions rows, from those i have writen the below measure to to take the maxCalldate data for every store.

But below measure its too low.

 

Measure : # in Distribution:= CALCULATE(SUM('FctInDistribution'[IsInDistribution]),'Item',Store,Store[CRM Status] = "Active",FILTER(FctInDistribution,FctinDistribution[dmDateCallID] = CALCULATE(MAX(FctInDistribution[dmDateCallID]),FILTER(FctInDistribution,FctInDistribution[dmStoreID] = EARLIER(FctInDistribution[DmStoreid])))))

 

But below measure its too low.

 

I tried different ways to increaser the performance, Like created seperate fact table for Maxdates for every store, but that is giving un expected result because of the that maxdate has to apply based on Time Slicer.

 

Can anyone give me the better solution or re write the measure to give the better performance.

 

Thanks,

kapil

 

 

 

 

2 REPLIES 2
Anonymous
Not applicable

create your measures in a cube. Not directly on power bi.

Thank you so much your Quick reponse..!

 

Actually this measure is not in Power BI, it's in Azure Analysis server.( Config : S2 tier model).

 

Thanks,

kapil

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.