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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Slow Table

Hello,

 

I have a table that takes forever to load. Anytime I use any slicers, same thing applies (SLOW to load). To my understanding, this is largely due to the columns in my table being comprised of measures with code that looks like this:

jfeddes_0-1650983384726.png

The reason I have the COUNTROWS function is to fix my totals row. Prior to implementing this logic, my totals row would always be incorrect.

 

My question is:

How can I increase the speed of my table? Is there a better way to fix my totals line?

 

Thanks,

 

Joel

1 ACCEPTED SOLUTION

Using just the SUMX part should cover both cases (since it would only sum over one group for the non-total lines).

 

forecasted_base_incentive =
SUMX (
        VALUES ( 'gwp_forecast_master'[distributor_name (groups)] ),
        [forecasted_base_incentive_%] * [forecasted_2022_sales]
    )

 

How well this measure performs is mostly dependent on how well each of the measures you're multiplying together performs. What are the definitions for these?

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , please provide the measure in text format. Also share logic what you are trying to build

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

forecasted_base_incentive =
//if, based on distributor name column, we are looking at a distributor... do the below
IF(COUNTROWS(VALUES('gwp_forecast_master'[distributor_name (groups)]))=1,
[forecasted_base_incentive_%]*[forecasted_2022_sales],
//if, based on the distributor name column, we are looking at the TOTAL line, then do the below (sum the above)
SUMX(VALUES('gwp_forecast_master'[distributor_name (groups)]),
[forecasted_base_incentive_%]*[forecasted_2022_sales]))

//The extra "COUNTROWS... code ensure that our totals are correct. When using measures as columns, the total line will be incorrect unless this logic is incorporated.
 
LOGIC: 
NOTE: I pasted a different measure involved in the table to be a bit more obvious. I have a table with about 6 columns that are all measure-based. AS such, I was getting an inaccurate total row. So, I added the SUMX and other logic to fix the total row. However, this has cost me major computing speed. The table is very slow. Let me know if you need additional info.

Using just the SUMX part should cover both cases (since it would only sum over one group for the non-total lines).

 

forecasted_base_incentive =
SUMX (
        VALUES ( 'gwp_forecast_master'[distributor_name (groups)] ),
        [forecasted_base_incentive_%] * [forecasted_2022_sales]
    )

 

How well this measure performs is mostly dependent on how well each of the measures you're multiplying together performs. What are the definitions for these?

Anonymous
Not applicable

Alexis,

 

You just made my day! Everything is updating very quickly again. Such a simple solution, but very powerful.

 

Thanks again,

Joel

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.