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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.