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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
devaj123
Frequent Visitor

Dashboard Report loading slowing while using semantic model Measures.

I have a report that is using semantic model. and in the report i crated a measure that is calling another measure using switch condition which is taking time is this a good practice, please suggest and also let me know how to use measures for good performance.

2 REPLIES 2
danextian
Super User
Super User

Hi @devaj123 

Whether that is a good practice,  really depends.  If you are using direct query to a semantic model then expect some delays. DQ after all is not as fast as import.  That aside, it could be the measures themselves used in switch that have problems. You may be filtering a table when you're supposed to filter just a column or columns or you're using iterator functions on high cardinality virtual tables.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
rohit1991
Super User
Super User

Hi , hope this information helps 🙂 ;

Using a measure that calls another measure through a SWITCH condition can lead to performance issues, especially in complex models or large datasets. Here are some recommendations:

  1. Optimize the Measure Logic: Avoid deeply nested measures. Instead, simplify logic by precomputing results or restructuring the model.

  2. Filter Context: Ensure the SWITCH statement avoids evaluating too many filters. Minimize the data processed by each condition.

  3. Aggregations: Leverage pre-aggregated data or summarized tables to reduce calculation overhead.

  4. Use Variables: Define calculations in variables within measures to avoid recalculating the same logic multiple times.

  5. Test Alternatives: Replace SWITCH with calculated columns or parameters if dynamic logic isn’t essential at runtime.

  6. Performance Analyzer: Use Power BI's Performance Analyzer to identify slow-performing measures and adjust accordingly.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.