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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
slyfox
Helper II
Helper II

wrong column sum for allexcept measure

Dear Community,

 

Please help to solve an issue with Column SUM for ALLEXCEPT related measure.

Report return expected row results, but sum for this row definitely wrong.

 

PBI file https://send.firefox.com/download/eb46fe9596ae65ef/#UdUFN3Z6BdOjr3PJIym-Ew
or https://www.plustransfer.com/download.php?id=63432b87a5dd29dd59358ee445c93619&email=%C2%89%7Ftw%7C%C...

 

 

Comm 1.png

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @slyfox 

I would suggest you create a measure to get the correct total.

Measure =
SUMX (
    SUMMARIZE (
        F_Shipment_Delivery,
        F_Shipment[SMP_Id],
        F_Shipment_Delivery[LINK_Delivery_Order]
    ),
    [Distr_NegoCost]
)

1.png

Regards,

Community Support Team _ Cherie Chen
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

11 REPLIES 11
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @slyfox 

I would suggest you create a measure to get the correct total.

Measure =
SUMX (
    SUMMARIZE (
        F_Shipment_Delivery,
        F_Shipment[SMP_Id],
        F_Shipment_Delivery[LINK_Delivery_Order]
    ),
    [Distr_NegoCost]
)

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vanessafvg
Super User
Super User

@slyfox  hi ok so something is wrong, but what are you expecting, can you give me something to compare it to?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hi @vanessafvg 
Result for this column should be the same as for SM_Negotiated Cost

@slyfox  ok then the problem is your relationships.  you have all your relationships set up to bi directional, you should change that to single and that should resolve your issue





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




I was having the same problem and your suggestion solved it! THANK YOUUUU! @vanessafvg 

@vanessafvg  

I did not find the answer in your posts. Links are set in the form in which it was required.

If you do not know how to solve the problem with the defined conditions, please ignore the post.

@vanessafvg Suggest workflow cannot be applied because it brings to wrong results in row by row calculations.

https://www.sqlbi.com/articles/bidirectional-relationships-and-ambiguity-in-dax/





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




@vanessafvg 
In my example, only 1/20 of the tables used in the model. My question is simple, within the existing data model it is possible to solve the problem or not?

yes as  i have said, disabling some of the the bidirectional relationships does this, however this is not as simple as you making out,  the onus is on you to understand how power bi works if this does not meet all your requirements.   what i am saying is right now based on your relationship model, this is is what is going to be returned, its important to undertand the behaviour of bi directional relationshipscapture1.PNGships. 

 

Capture.PNG

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




@slyfox you mean relationships flow?   then you might need to think about remodeling your data because that is what the relationships set up in both directions do.   





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.