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
glenmclaren
Helper II
Helper II

how can i calculate using a single measure on different rows

hi all

subject sounds bit compliated, but in reality, hoping this should not be.

 

i have a requirement where i wish to calculate a new measure from a single measure over different rows.

it stems from a hierarchy problem.

 

one level of the hierarchy, incorporates figures from other levels. each row is a level of its own, so i have to deduct the child level from the parent level.

 

e.g.

here is my standing data. L1 incorporates L2 data

L1 10

L2 6

 

what i need to output is this

L1 4

L2 6

 

i am hoping this can be done via some form of set function, and not have to create xcross tabs or extra tables.

 

here is another example to help make things clearer

 

Dataset

CompanyProfit
A600.00
B300.00
C200.00

 

Above, Company C is rolled up into Company A (600), and Company A has its own profits (400).

I want to report all Company profits on their own, so somehow i need to interrogate the dataset when working out Company A's profit, to deduct the 200 from 600 and report 400. So the report should look like this.

 

CompanyProfit
A400.00
B300.00
C200.00

 

 

hope this is clearer, should have spent the time doing this before,

 

 

thanks

glen

10 REPLIES 10

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.