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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Oleg222
Helper II
Helper II

Forcibly set other value in measure

Hi. Please help with the question - there is a table with indicators.

ProductsValueBranch
Product1 100Branch1
Product1 110Branch2
Product1 120Branch3
Product2 200Branch1
Product2 210Branch2
Product2 220Branch3
Product3 300Branch1

Next, the power bi calculates the measure for each product separately . It is necessary that for product 3, the value in the matrix is displayed for Branch1 and Branch2, although there is no product 3 in B2. Can this be done by a measure for product3 so that it is counted separately according to the figures that are in the table and additionally shown Branch2?

 

Expected - the value in Branch1 must also be displayed in Branch2:

 

Products Branch1 Branch2 Branch3
    
Product3 300 300 
1 ACCEPTED SOLUTION

With this model...

model.JPGand this measure

Sum Value = SUM(FactTable[Value])

and the one for the matrix

Values for matrix =
IF (
    SELECTEDVALUE ( 'Dim Products'[Products] ) = "Product3"
        && SELECTEDVALUE ( 'Dim Branch'[Branch] ) IN { "Branch1", "Branch2" },
    CALCULATE (
        [Sum Value],
        'Dim Products'[Products] = "Product3",
        ALL ( 'Dim Branch'[Branch] )
    ),
    [Sum Value]
)

you will get this:

result.JPG





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

7 REPLIES 7
Oleg222
Helper II
Helper II

@PaulDBrown , thank you. But unfortunately this is not quite the case. It is necessary that the value for Product3, which is only for Branch1, is displayed additionally for Branch2, but not for Branch3.

Yes, sorry. I realised that after I posted. I've now edited the post to fulfil the request (see my previous post with the solution)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

Can you post a depiction of what the expected outcome/matrix should be please?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






@PaulDBrown at the end of the topic.

With this model...

model.JPGand this measure

Sum Value = SUM(FactTable[Value])

and the one for the matrix

Values for matrix =
IF (
    SELECTEDVALUE ( 'Dim Products'[Products] ) = "Product3"
        && SELECTEDVALUE ( 'Dim Branch'[Branch] ) IN { "Branch1", "Branch2" },
    CALCULATE (
        [Sum Value],
        'Dim Products'[Products] = "Product3",
        ALL ( 'Dim Branch'[Branch] )
    ),
    [Sum Value]
)

you will get this:

result.JPG





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






@PaulDBrown it works, thank you!

Great to hear! Just beware that if you need to include the totals, the measure must be tweaked





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors