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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
smitpau
Helper I
Helper I

Calculate Measure Help

Hi,

 

I'd like to always apply the same measure to the matrix independent of the data table.

For example the Balance Sheet, Total current assets is always the sum of say rows 10-15.

 

So the data table [TB] would become some sort of generic lookup for the values already in the matrix.

 

Total current assets =
calculate([TB],BS[Sort index] >= 10,BS[Sort index] <= 15)

 

Hope that makes sense.

 

Thanks for reading.

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @smitpau ,

 

This is impossible,unless the datasource names and column names of different data sources are the same.

 

Best Regards,
Liang
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

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @smitpau ,

 

This is impossible,unless the datasource names and column names of different data sources are the same.

 

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

Thanks @V-lianl-msft  good to know was treating it like an Excel cell which realise you can't do.

pranit828
Community Champion
Community Champion

HI @smitpau 

If I understand your ask, below is what I would do.

Measure = CALCULATE(SUM('BS'[TB]),BS[Sort index] >= 10 && BS[Sort index] <= 15)





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Hi Pranit,

 

Thanks for the help.

 

The idea is that as the TB (data source) can change the measure would just sum the values of certain rows rather than rely on the data source. So the measure wouldn't refer to a single data source.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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