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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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.

If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.

Proud to be a Microsoft Fabric Super 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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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