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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
oakgogo
Helper II
Helper II

how to improve performance of matrix visual

In order to built a hirearchy column and row headers in matrix, I built up row ad column dimension table, and use SWITCH in DAX to find out relevent values, it seems like this:

calculation=
SWITCH(TRUE,

col1=“AAA” && col2="adsfadsa",CALCULATE(SUM( value1),condition1,...

col1=“AAB” && col2="adsfavsadfa", CALCULATE(SUM( value2),condition1,...

.....

......

there are so many rows and columns that this dax turned out to be hunders of lines,

and it take more than 6 seconds to see the value in the metrix, it is impossible use other method, so is there any solution I can lower the time to show up the value?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @oakgogo 


You can find Performance analysis on Power BI Desktop, use it to record when your matrix displays values, and see where you spend more time.

 

vyohuamsft_0-1705907895340.png

 

Here's how to use Performance Analysis:

 

Use Performance Analyzer to examine report element performance in Power BI Desktop - Power BI | Micr...

 

It's possible that your measure is making loading the visual's values slow. When using metrics, performance issues can arise, and you need to adjust the performance of the metrics and design an appropriate data model. You can check out the documentation on how to optimize, and here are the links:

 

Optimization guide for Power BI - Power BI | Microsoft Learn

 

Optimize a model for performance in Power BI - Training | Microsoft Learn

 

I apologize for not providing you with substantial assistance.

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @oakgogo 


You can find Performance analysis on Power BI Desktop, use it to record when your matrix displays values, and see where you spend more time.

 

vyohuamsft_0-1705907895340.png

 

Here's how to use Performance Analysis:

 

Use Performance Analyzer to examine report element performance in Power BI Desktop - Power BI | Micr...

 

It's possible that your measure is making loading the visual's values slow. When using metrics, performance issues can arise, and you need to adjust the performance of the metrics and design an appropriate data model. You can check out the documentation on how to optimize, and here are the links:

 

Optimization guide for Power BI - Power BI | Microsoft Learn

 

Optimize a model for performance in Power BI - Training | Microsoft Learn

 

I apologize for not providing you with substantial assistance.

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PijushRoy
Super User
Super User

Hi @oakgogo 

Can you please share SNAP for your data structure and expected result?
If possible, please share sample data and SNAP of the expected result.




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.