Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello
I'm going to build the following composite data model:
From 2 fact tables:
Fact_Table_1: Storage mode = DirectQuery, more than 10M rows
Fact_Table_2: Storage mode = Import, 1K lines
Create a GLOBAL_FACT_TABLE table which is the UNION of Fact_Table_1 and Fact_Table_2.
(Fact_Table_1 and Fact_Table_2 have the same columns and data types)
Then set up a star schema based on GLOBAL_FACT_TABLE with 4 dimension tables around: Dimension_Table_1
, Dimension_Table_2, Dimension_Table_3, Date_table.
Finally, create measures based on GLOBAL_FACT_TABLE and the 4 dimension tables.
Here is the described schema:
Is it possible ? I mean, is the DirectQuery + Composite model as magical as we could expect: can we make full use of some measures based on GLOBAL_FACT_TABLE without worrying about what's behind it to fetch the data from Fact_Table_1 and Fact_Table_2 ?
If not, what are the limitations?
Thanks and Regards
I think @lbendlin is correct. You can't union the tables without loading Fact_Table_1 into your model.
One possible solution is to have both fact tables hooked up to the same dimension tables and define your base measures like this
SumSales = SUM ( Fact_Table_1[Sales] ) + SUM ( Fact_Table_2[Sales] )
This abstracts away the separation for any higher-level measures that depend on such base measures.
When you do the UNION you are creating a new calculated table in memory, which will not be very different from having both of your fact sources in Import Mode. Not sure that is even possible.
Have you considered using Aggregations instead?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |