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
Anonymous
Not applicable

Completely baffled - row qty makes no sense

Hello Community  -  

 

The first line in the table shows a correct qty (QtyOrdered) of 1500.    This has been verified in our ERP system.   Note this is a system generated number and I did have to change the setting to "do not summarize".  

 

I had thought a simple SUM measure over the Qty ordered would give me the same answer...but it is returning 7500.   I tried a Count measure...same thing.    I tried a SUMX measure...same thing.  

 

The very confusing part, is that it is not happening to any of the other rows...only the first.   What on earth is going on?    And why is a measure formula not working to show the correct quantity.  

 

And there are no other lines...this is it.  

 

texmexdragon_0-1601600164272.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for everyone's input.  

 

The issue turned out to be that there were some duplicated rows and so the Order line was being multipled 5 times.  

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@Anonymous , Not very clear. Can share the expected output.

 

Line level Qty =sum(Table[Qty Ordered])

Do you need order-level qty

calculate(sum(Table[Qty Ordered]),allexcept(Table, Table[Order]))

or

calculate(sum(Table[Qty Ordered]),filter(allselcted(Table), Table[Order] = max(Table[Order])))

Anonymous
Not applicable

Thanks for everyone's input.  

 

The issue turned out to be that there were some duplicated rows and so the Order line was being multipled 5 times.  

Hi @Anonymous ,

Thanks for your feedback and sharing the cause of problem. Could you please mark your post as Answered since the problem has been resolved? It will help the others in the community find this solution if they face the same problem with you. Thank you.

Best Regards

Rena

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

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.