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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
AliceW
Power Participant
Power Participant

Calculate a measure for a total conditioned by other columns

Hi everyone,

 

Brain is fried, so please help!

 

I have this table where all columns are pretty easy to handle with the exception with the last one: Rent (EUR). I've imported it via RELATED using the Opportunity number from a different table. This, however, means a lot of bad data.

 

OpportunityOpp OwnerSplit TypeSplit OwnerOpp Owner = Split OwnerRent (EUR)
111JimApplesJimYes100
111JimOrangesJimYes100
111JimApplesAnneNo100
111JimOrangesAnneNo100
222BettyApplesBettyYes120
222BettyOrangesBettyYes120

 

So, I would need a Measure (or column, whatever works), to get the Rent money allocated to the Split Owner ONLY if they're also the Opp Owner. For the non-owner, the amount needs to be zero. And oh, that Split Type is doubling/trebling the amounts big time.

 

This is what I'd love to see:

 

OpportunitySplit OwnerRent (EUR)
111Jim100
111Anne0
222Betty120

 

I've tried a SUMX with a dash of CALCULATE, and I got Anne an amount of 100 😞

 

Help, please!

 

Alice

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @AliceW 

Create a measure

Measure =
IF (
    MAX ( Sheet8[Opp Owner = Split Owner] ) <> "No",
    LOOKUPVALUE ( Sheet9[value], Sheet9[Opportunity], MAX ( Sheet8[Opportunity] ) ),
    0
)

6.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
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

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @AliceW 

Create a measure

Measure =
IF (
    MAX ( Sheet8[Opp Owner = Split Owner] ) <> "No",
    LOOKUPVALUE ( Sheet9[value], Sheet9[Opportunity], MAX ( Sheet8[Opportunity] ) ),
    0
)

6.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much, Maggie!!!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Users online (27,564)