cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wvanpeel
Advocate II
Advocate II

Subtotaling at higher level

I'm trying to subtotal at the level of SalesOrderID ,   

PlantSalesOrder IDDelivery IDSales Order QtyDelivery Qty
A13316029
A13326031
A155109030
A155209028
A155309030
   390148
Report MatrixPlantTotal Sales Order QtyTotal Delivery Qty 
 A150148 
     
  How to subtotal a SalesOrder ID level ??  
1 ACCEPTED SOLUTION
djurecicK2
Resident Rockstar
Resident Rockstar

Ok, I think you are looking for the total by sales order without delivery ID.

 

In that case, you can summarize this data and not include Delivery ID in the summary table.

 

Something like this:

 

New Table= SUMMARIZE(Tablename, Tablename[Plant], Tablename[SalesOrder ID], "Order QTY", MAX(Tablename[Sales Order Qty], "Delivery Qty", SUM(Tablename[Delivery Qty]))

 

https://learn.microsoft.com/en-us/dax/summarize-function-dax

 

Please consider accepting as solution if this resolves the issue- thanks!


If this post helps, then please consider accepting it as the solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
djurecicK2
Resident Rockstar
Resident Rockstar

Ok, I think you are looking for the total by sales order without delivery ID.

 

In that case, you can summarize this data and not include Delivery ID in the summary table.

 

Something like this:

 

New Table= SUMMARIZE(Tablename, Tablename[Plant], Tablename[SalesOrder ID], "Order QTY", MAX(Tablename[Sales Order Qty], "Delivery Qty", SUM(Tablename[Delivery Qty]))

 

https://learn.microsoft.com/en-us/dax/summarize-function-dax

 

Please consider accepting as solution if this resolves the issue- thanks!


If this post helps, then please consider accepting it as the solution to help other members find it more quickly.
djurecicK2
Resident Rockstar
Resident Rockstar

Hi @wvanpeel ,

 Have you tried putting the SalesOrder ID field into your visual?


If this post helps, then please consider accepting it as the solution to help other members find it more quickly.

Yes I have, you can see this in the first list.  The 2nd visual is a matrix, I need the subtotal of Sales Order Qty to behave correct. Total should be 150. 

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors