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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ffunky
Helper I
Helper I

How can I make this measure faster?

I made this measure because the Totals in my matrix weren't adding up correctly, but now my matrix is super slow.

 

Volume_Sales = sumx('Weekly Sales',CALCULATE(sum(_PKG_PACKAGE_MASTER_ITEM[CE_FACTOR])*[Units_Sold_Measure]))
 
[Units_Sold_Measure] is just a sum of a column.
 
Thanks!
Jason
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

First of we need make sure where should be mutliple _PKG_PACKAGE_MASTER_ITEM[CE_FACTOR and Units_Sold_Measure.

 

Let us say it we have qty and unit price. We can not create a meausre

sum(qty)*sum(unit price)

We need a column Value = qty*[unit price], now we can sum.

 

Now if it case like find unit price and we have Value and Unit then Avg if Value/qtywill not give correct answer . We have to create a measure unit price =sum(value)/sum(qty)

 

Not sure of the dat model. But you might have to create a column. It depend on what calcultion you have for Units_Sold_Measure

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @ffunky ,

 

You could refer to this video:

https://www.sqlbi.com/tv/my-power-bi-report-is-slow-what-should-i-do/

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

First of we need make sure where should be mutliple _PKG_PACKAGE_MASTER_ITEM[CE_FACTOR and Units_Sold_Measure.

 

Let us say it we have qty and unit price. We can not create a meausre

sum(qty)*sum(unit price)

We need a column Value = qty*[unit price], now we can sum.

 

Now if it case like find unit price and we have Value and Unit then Avg if Value/qtywill not give correct answer . We have to create a measure unit price =sum(value)/sum(qty)

 

Not sure of the dat model. But you might have to create a column. It depend on what calcultion you have for Units_Sold_Measure

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak .  Creating columns and then referencing those seems to work much better!

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @ffunky ,

 

can you give an overview of your data model?

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors