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
Anonymous
Not applicable

Any help to make my tables load faster?

Hello,

 

I have product table by Store Level. When I add below three formulas, it will take really long time to load the table whenever I add some changes or whenever I refresh. Any idea how to make it faster? I did search online, and found some info, but not help me.  I am not sure how to use DAX studio and what I suppose to do with it.  If anybody know, please let me know.  (Enable load and include in report refresh already marked on tables)

 

WOH = IF(ISBLANK(CALCULATE([Total On Hand]/(([Qty. Sold Last 4 Weeks]/28)*7))),"NA",([Total On Hand]/(([Qty. Sold Last 4 Weeks]/28)*7)))

Location Stock Out = IF(ISBLANK(CALCULATE(DISTINCTCOUNT('Location Stock out'[Store Name]), FILTER('Location Stock out', 'Location Stock out'[Available] = "Yes"))),"-", CALCULATE(DISTINCTCOUNT('Location Stock out'[Store Name]), FILTER('Location Stock out', 'Location Stock out'[Available] = "Yes")))

True Stock Out = IF(ISBLANK(CALCULATE(DISTINCTCOUNT(Inventory_RQ[Store Name]), FILTER(Inventory_RQ, Inventory_RQ[Not in Stock] = "Yes"))), "-", CALCULATE(DISTINCTCOUNT(Inventory_RQ[Store Name]), FILTER(Inventory_RQ, Inventory_RQ[Not in Stock] = "Yes")))

 

Note- I am getting data from analysis service.

I already found this on community.

https://community.powerbi.com/t5/Desktop/Power-BI-Desktop-Visuals-slow-load/td-p/252881tempsnip.pngThank you so much

 

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous,

 

Here I suggest to use SWITCH to work on it instead of IF function. Also kindly create measures separately.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hey @v-frfei-msft

 

Thank you for the help.  I will try using SWITCH, but what do you mean by create measures seoerately. 

 

Thank you 

Danzidpp

Hi @Anonymous,

 

For example, for this measure. 

Location Stock Out = IF(ISBLANK(CALCULATE(DISTINCTCOUNT('Location Stock out'[Store Name]), FILTER('Location Stock out', 'Location Stock out'[Available] = "Yes"))),"-", CALCULATE(DISTINCTCOUNT('Location Stock out'[Store Name]), FILTER('Location Stock out', 'Location Stock out'[Available] = "Yes")))

 

We can create three measures separately to work on it.

 

Measure2=CALCULATE(DISTINCTCOUNT('Location Stock out'[Store Name]), FILTER('Location Stock out', 'Location Stock out'[Available] = "Yes"))
Measure = CALCULATE(DISTINCTCOUNT('Location Stock out'[Store Name]), FILTER('Location Stock out', 'Location Stock out'[Available] = "Yes"))
Location Stock Out = IF(ISBLANK([Measure]),"-", [Measure2])

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @Anonymous,


Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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.