cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DC9000
Frequent Visitor

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  @DC9000 ,

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  @DC9000 ,

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

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
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors
Top Kudoed Authors