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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors