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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Composite Model on Service and Calculate Tables

Composite Model is a fairly complex topic for me, I have some questions that need to be answered.

Let's say I have a composite model built on Direct Query and on an imported Excel file and I want to create some calculated tables inside of it that elaborate data from both cloud storage and the excel file;
- First of all, is this actually possible?

- Can I upload said composite model on PBI Service?

- Regarding those calculated tables, when are they going to update themselves? Would they be updated at all times or would I need to manually update them (besides the excel source part)?

I know these question may sound confusing but I'm confused too.
Any help will be greatly appreciated,
thanks

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

I created some data:

Direct Query:

vyangliumsft_0-1634538675626.png

Import:

vyangliumsft_1-1634538675628.png

You can create a calculation table:

Table =
SUMMARIZE('sysdiagrams','sysdiagrams'[name],'sysdiagrams'[diagram_id],
"amount",CALCULATE(SUM('Sheet1'[amount]),FILTER(ALL('Sheet1'),'Sheet1'[diagram_id]='sysdiagrams'[diagram_id])))

vyangliumsft_2-1634538675629.png

You can publish the calculation table to the power bi service:

vyangliumsft_3-1634538675631.png

The calculation table is equivalent to Import mode. You can configure the gateway, and then you can set the schedule refresh or manually refresh immediately to update the data.

https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-data

https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-app

https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-scheduled-refresh

 

Best Regards,

Liu Yang

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

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous ,

I created some data:

Direct Query:

vyangliumsft_0-1634538675626.png

Import:

vyangliumsft_1-1634538675628.png

You can create a calculation table:

Table =
SUMMARIZE('sysdiagrams','sysdiagrams'[name],'sysdiagrams'[diagram_id],
"amount",CALCULATE(SUM('Sheet1'[amount]),FILTER(ALL('Sheet1'),'Sheet1'[diagram_id]='sysdiagrams'[diagram_id])))

vyangliumsft_2-1634538675629.png

You can publish the calculation table to the power bi service:

vyangliumsft_3-1634538675631.png

The calculation table is equivalent to Import mode. You can configure the gateway, and then you can set the schedule refresh or manually refresh immediately to update the data.

https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-data

https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-app

https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-scheduled-refresh

 

Best Regards,

Liu Yang

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

Anonymous
Not applicable

Got it, thanks.

What if I want to create a calculated column on a DirectQuery table, is it going to behave like Imported data or is it going to be "live"?

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors