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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AndrewTobin
Frequent Visitor

SSAS Tabular Shared Expressions vs PowerBI Power Query

Hey folks, just a confirmation if I can.

 

We are using SSAS Tabular, and we want to create duplicates of tables, except if we do so using an Import or DAX then it contains a duplicate of the data in the model.

 

Someone mentioned in Power BI if we use Reference in the Power Query, then the second query gets the cached data from the first.

 

If we use Shared Expressions in SSAS Tabular, am I right that it won't duplicate this behaviour, even if we made the second Shared Expression a reference to the first, but instead the query gets evaluated and the data brought in for each table regardless?

 

Thanks

1 REPLY 1
jennratten
Super User
Super User

Hello -

 

When an expression references another expression, the referenced expression is evaluated first, and its result is then used in the evaluation of the referencing expression. This means that both expressions are evaluated, but not necessarily back to the source data. Instead, the evaluation depends on the context and the specific calculations involved.

For example, if you have Expression A that calculates a value based on some source data, and Expression B that references Expression A, the following happens:

  1. Expression A is evaluated based on the source data.
  2. The result of Expression A is then used in the evaluation of Expression B.

This process ensures that the calculations are performed correctly and efficiently, without redundant evaluations back to the source data.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors