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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
csandwick
Frequent Visitor

Sum of selected values

I am trying to create a total with filtering the information to have mutiple total for each seperate item. One colum is an item number which identify the product, the other is the quantity of order. I need to create a table that sums the quantity for each item seperatly.

 

Example-

colum 1 (Item No.): 76, 76, 76, 50, 50, 23, 18, 17, 16, 16,.....

colum 2 (Quanity): 205, 116, 500, 419, 393, 201, 650, 775,.....

 

Creates-

colum 1 (Item No.): 76, 50, 23, 18, 17, 16

colum 2 (Quanity): 821, 812, 201,....

 

1 ACCEPTED SOLUTION

@csandwick,

 

You may add a measure as shown below.

Measure =
DIVIDE (
    SUM ( Table1[Quantity] ),
    CALCULATE (
        SUM ( Table2[Bushel Quantity] ),
        FILTER ( Table2, Table2[No_] = MAX ( Table1[Item No.] ) )
    )
)
Community Support Team _ Sam Zha
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

6 REPLIES 6
parry2k
Super User
Super User

Drop both item numner and quantity on the table visual, and on item number, in drop down, select "dont summarize"

 

dont summarize.PNG



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I want each item to have a summerized total quantity, I need it to be in table format. In this picture Item no. and No_ have the same values with mutiple entries for each item. Power Bi summerizes each information from two seperate directquiry databases. I need to take total item quanities shown from the first table and devide it by the total bushel quantities in the second table.

Capture.PNG

 

@csandwick,

 

You may add a measure as shown below.

Measure =
DIVIDE (
    SUM ( Table1[Quantity] ),
    CALCULATE (
        SUM ( Table2[Bushel Quantity] ),
        FILTER ( Table2, Table2[No_] = MAX ( Table1[Item No.] ) )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I'm not clear about your request.

 

So to confirm, you have one table with item numner and quantity column and you want to summarize quantity for each item in a table, correct?

 

If that is the case, my first reply will do the job. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Both of those tables picture are with the item no. and No_ not summerized already

Capture.PNG

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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