Illustration of a person sitting at a desk using a laptop and tablet, surrounded by icons of charts, cloud storage, a file folder, a magnifying glass, and a security lock symbol.

How to Optimize DAX Formulas for Better Performance

Smiling man with a black turban and beard against a purple gradient background.
 Manvir G
Manvir Grewal, co-founder and architect behind The Reporting Hub, is a seasoned Agile Coach with over 16 years of experience in creating and leading cross-functional teams in complex domains. His expe...
Clock
4 Minutes
Subscribe to our blog to stay up to date on all the latest information from the Reporting Hub team! We’ll never share your email with anyone else.
Data security is essential. But too often, protecting data slows everything else down. Reports take longer to load. Dashboards lag. Users wait.

And in analytics, speed matters. You shouldn’t have to choose between protecting your data and delivering a fast, seamless experience. With the right tools and setup, you can have both, without compromise.

The Challenge: Security vs. Speed in Embedded Analytics

It’s not uncommon for users to click into a report and wait… and wait. Those delays usually come from layers of security checks. While they’re there to protect your data, they can ruin the experience.

In embedded analytics, experience is everything. Users expect dashboards to be fast, responsive, and always available – especially when they’re built into your product.

At Reporting Hub, we’ve solved that problem. Unlike most SaaS providers, our platform is fully deployed in your Azure environment. That means we never store, process, or transmit customer data. You stay in control of your data, security, and compliance.
This approach eliminates external data access delays, giving you secure, embedded Power BI reporting with the performance your users expect.
Illustration of an hourglass surrounded by a rocket, stopwatch, calendar, checklist, light bulb, and a graph, symbolizing time management and productivity.

Why Performance Matters in Power BI Embedded

Users don’t just want insights – they want them now. Power BI Embedded lets you deliver dashboards right inside your application, so users get seamless access to the data they need.

But when reports are slow to load, frustration builds fast. It doesn’t just hurt the experience – it can delay decisions and lower product value.

Choose the Right Functions

Not all DAX functions are created equal when it comes to performance. Some functions are inherently more efficient than others for specific tasks.

Use SUMMARIZECOLUMNS Instead of SUMMARIZE: The newer SUMMARIZECOLUMNS function is generally more efficient and should be your go-to for summarizing data.
Prefer TREATAS Over CALCULATETABLE When Possible: TREATAS can be more efficient for applying filters from one table to another.
Blue circular digital clock icon with faint hour and minute hands centered.
Speed isn’t optional. For embedded analytics to deliver on its promise, performance has to match security – and Power BI Embedded is built to deliver both.

Best Practices for Faster Performance in Power BI Embedded

Fast doesn’t mean fragile. Here’s how to optimize for speed without giving up security:
Blue and purple gradient circle with crossed wrench and screwdriver icon in the center.
Keep tools up to date
Use the latest Power BI Desktop, SDK, and Tabular Editor to stay on top of performance improvements.
Icon of a document with a right-pointing arrow inside a circular gradient background from blue to purple.
Preload files
Use powerbi.preload() to load the Power BI JavaScript library in advance, but report data still requires authentication and RLS checks when the user requests it.
Blue and purple gradient circle with a subtle chain link icon in the center.
Use optimized embed URLs
Use the latest Power BI Desktop, SDK, and Tabular Editor to stay on top of performance improvements.
Circular gradient icon from blue to purple with a tilted paperclip symbol in the center.
Minimize iFrames
Use the Power BI JavaScript SDK’s embedreport() method with single-page app frameworks to avoid iFrames entirely. For multiple reports, reuse the same iFrame.

Blue and purple gradient circle icon with a white database symbol composed of three stacked cylinders.
Leverage cached data
Enable query caching in Power BI Premium/Embedded to cache dataset results. Use Aggregation Tables for large DirectQuery models to accelerate common queries.

Smarter Architecture for Safer, Faster Reporting

Power BI Embedded includes advanced features to protect data and improve performance at scale:
White office building icon with windows on a rounded blue square background.
Multi-tenant support
Isolate tenants using separate workspaces or RLS with DAX dynamic filters. For Premium, use dedicated capacities per tenant to avoid resource contention.
White office building icon with windows on a rounded blue square background.
Audit logs
Get full visibility into usage for compliance and monitoring.
Icon of a person with a shield representing user protection or data security.
Row-level security
Ensure users only see what they’re allowed to – nothing more.
Illustration of a desktop monitor displaying an upward trending line graph, bar charts, and pie charts with colorful sticky notes and decorative plants nearby.
Reporting Hub builds on this foundation with even more safeguards:
Blue shield icon symbolizing security or protection.
Secure code development
We follow strict security testing and code review practices.
Blue circular icon with a square and horizontal line inside, resembling a folder or a closed file.
Minimal attack surface
Our deployment lives entirely in your Azure environment.
Blue circle icon with a user silhouette and a padlock symbol representing secure user access.
Customer-controlled access
You define identity, authentication, and permissions.
Blue circular icon with a white database symbol consisting of three stacked horizontal cylinders.
No data retention
We never store your customer data – removing risk at the root.

Security Without Sacrificing Speed: How Power BI Embedded Gets It Right

Power BI Embedded is designed for both performance and protection. It uses encrypted pipelines, Azure Active Directory for authentication, and granular access controls – all without slowing down the user experience.
In short:
Pink circular icon with three white horizontal lines representing a menu or list.
Granular access control with zero performance trade-offs
Pink circular icon with a lightning bolt symbol in the center.
Fast, secure data delivery through encrypted pipelines
Pink circle with a shield symbol and a checkmark inside, symbolizing security or protection.
Built-in compliance that doesn’t disrupt the user experience
It’s security by design – optimized for speed.

Achieving the Perfect Balance with Reporting Hub

At Reporting Hub, we believe speed and security should go hand in hand. That’s why we built a white-label business intelligence platform that delivers both – without trade-offs.

The Bottom Line

Our plug-and-play, no-code reporting portal is purpose-built for Power BI Embedded. With it, you can:
White icon of three people on a blue rounded square background representing a group or community.
Share insights with unlimited users
Paintbrush icon on a blue rounded square background.
Fully own and brand your analytics experience
White rocket icon centered on a blue rounded square background.
Fully own and brand your analytics experience
White lock icon on a blue rounded square background representing security.
Embed directly into your Azure environment for maximum security
Whether you’re scaling internal dashboards or launching data products, Reporting Hub gives you the power to do it all – securely, quickly, and on your terms.

Illustration of data security symbols including a locked computer screen, key, shield with checkmark, password bubble, user ID card, globe, cloud upload/download, and USB stick.