Reply
powerbiexpert22
Post Prodigy
Post Prodigy
Partially syndicated - Outbound

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 ACCEPTED SOLUTIONS
anmolmalviya05
Super User
Super User

Syndicated - Outbound

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.

View solution in original post

Syndicated - Outbound

Hi, @powerbiexpert22 

 

Composite Models: Composite models in Power BI allow you to combine multiple data sources into a single model. This means you can have both DirectQuery and Import data sources in the same report. 

 

When to Use Composite Models:

When you need to combine data from different sources, such as a mix of DirectQuery and Import data.
When you want to leverage the strengths of both DirectQuery (real-time data access) and Import (better performance for historical data).
When you need to create complex reports that require data from multiple sources.
Example: Imagine you are building a sales report. You have real-time sales data in a SQL Server database (DirectQuery) and historical sales data in an Excel file (Import). Using a composite model, you can combine these data sources into a single report, allowing you to analyze both real-time and historical sales data together.

Use composite models in Power BI Desktop - Power BI | Microsoft Learn

https://visiochart.com/blog/hybrid-vs-composite-models-in-power-bi/ 

 

Best Regards,

Community Support Team _Charlotte

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

3 REPLIES 3
powerbiexpert22
Post Prodigy
Post Prodigy

Syndicated - Outbound

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?

Syndicated - Outbound

Hi, @powerbiexpert22 

 

Composite Models: Composite models in Power BI allow you to combine multiple data sources into a single model. This means you can have both DirectQuery and Import data sources in the same report. 

 

When to Use Composite Models:

When you need to combine data from different sources, such as a mix of DirectQuery and Import data.
When you want to leverage the strengths of both DirectQuery (real-time data access) and Import (better performance for historical data).
When you need to create complex reports that require data from multiple sources.
Example: Imagine you are building a sales report. You have real-time sales data in a SQL Server database (DirectQuery) and historical sales data in an Excel file (Import). Using a composite model, you can combine these data sources into a single report, allowing you to analyze both real-time and historical sales data together.

Use composite models in Power BI Desktop - Power BI | Microsoft Learn

https://visiochart.com/blog/hybrid-vs-composite-models-in-power-bi/ 

 

Best Regards,

Community Support Team _Charlotte

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

anmolmalviya05
Super User
Super User

Syndicated - Outbound

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.

avatar user

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)