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
powerbiexpert22
Post Prodigy
Post Prodigy

Dual Storage mode

i am trying to understand dual storage mode in Power BI. I have gone through below document however I am not clear in which scenario I should use dual storage mode in Power BI , also I want to know are the limitations that I need to consider before using or applyig dual storage mode in Power BI 

 

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-storage-mode

2 REPLIES 2
powerbiexpert22
Post Prodigy
Post Prodigy

Hi @anmolmalviya05 ,

i can use composite models in case of hybrid models , i am not clear on when i should use it, can you provide more explanation with example?

anmolmalviya05
Memorable Member
Memorable Member

Hi @powerbiexpert22 ,

In Power BI, the Dual Storage Mode is one of three storage modes (alongside Import and DirectQuery). Dual mode allows a table to act as both Import and DirectQuery, depending on the context in which the table is used.

 

Key Characteristics of Dual Storage Mode:

Flexibility: Dual-mode tables can act as Import for performance-intensive queries and as DirectQuery for real-time or query-specific needs.

Hybrid Functionality: Power BI decides whether to query the local in-memory copy (Import) or directly query the data source (DirectQuery), depending on the relationships and query context.

When to Use Dual Storage Mode

Here are common scenarios where Dual Storage Mode is beneficial:

 

Hybrid Models:

 

When combining Import and DirectQuery tables in the same model.

For example, you have a large historical dataset in Import mode but want real-time updates for the current quarter using DirectQuery. Using Dual mode allows shared dimension tables to optimize performance.

Shared Dimensions:

 

When dimension tables (e.g., Date, Product, Customer) are shared between Import and DirectQuery fact tables.

In such cases, Dual mode allows these tables to adapt dynamically:

Use Import mode for queries involving Import fact tables (faster performance).

Use DirectQuery for queries involving DirectQuery fact tables (real-time data).

Optimizing Model Performance:

 

When you want to avoid redundant storage of dimension tables (which may already exist in Import mode) while ensuring DirectQuery works efficiently.

Example: A Calendar table that is accessed by both real-time DirectQuery fact tables and pre-loaded Import fact tables.

Reducing Data Refresh Time:

 

If a table is only occasionally required for real-time queries, Dual mode ensures it doesn't need to be fully loaded during data refresh.

Limitations of Dual Storage Mode

Before applying Dual Storage Mode, consider these limitations:

 

Memory Usage:

 

Since Dual mode also includes an Import copy, it consumes additional memory compared to DirectQuery alone.

Data Source Compatibility:

 

Dual mode depends on DirectQuery functionality. If the data source does not support DirectQuery, Dual mode cannot be used.

Query Performance Trade-offs:

 

While Dual mode is flexible, real-time queries still depend on the performance of the underlying DirectQuery source. Queries involving DirectQuery may experience latency compared to Import mode.

Complex Relationships:

 

Dual mode might not always work seamlessly with complex model relationships. For example, if there are ambiguous paths or many-to-many relationships, query execution can be inefficient.

Configuration Complexity:

 

Choosing when and where to apply Dual mode adds complexity to the model design. Careful planning is needed to ensure Dual mode provides the intended performance benefit.

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.