Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Sunnarizing data

Dear all,

 

I have a small problem which almost breaks my nerves (after 2 hours searching for a solution).

 

I have a table which looks like this:

ITEMNUMBERDESCRIPTIONOURREFStatus_orderQuantity
AMS2000-002ML2i USB Host Adapter ''FULL''C190005Ready for Invoicing1
AMS2000-002ML2i USB Host Adapter ''FULL''C190005Ready for Invoicing2
AMS2000-002ML2i USB Host Adapter ''FULL''C190005Ready for Invoicing3
AMS2000-002ML2i USB Host Adapter ''FULL''C190005Ready for Invoicing4
AMS2000-002ML2i USB Host Adapter ''FULL''C190005Ready for Invoicing5
AMS2000-002ML2i USB Host Adapter ''FULL''S190470Closed5
AMS2000-002ML2i USB Host Adapter ''FULL''S190179Closed4
AMS2000-002ML2i USB Host Adapter ''FULL''S190517Quotation3
AMS2000-002ML2i USB Host Adapter ''FULL''S190471Quotation6
AMS2000-002ML2i USB Host Adapter ''FULL''S190432Await Payment7
AMS2000-002ML2i USB Host Adapter ''FULL''S190380Confimed8
AMS2000-002ML2i USB Host Adapter ''FULL''S190059Confirmed1
AMS2000-002ML2i USB Host Adapter ''FULL''S190059Closed2

 

I am looking for the proper DAX solution to summarize this table to the below table.

Your help is highly appreciated!

John

ITEMNUMBERDESCRIPTIONOURREFStatus_orderQuantity
AMS2000-002ML2i USB Host Adapter ''FULL''C190005Ready for Invoicing15
AMS2000-002ML2i USB Host Adapter ''FULL''S190470Closed9
AMS2000-002ML2i USB Host Adapter ''FULL''S190517Quotation9
AMS2000-002ML2i USB Host Adapter ''FULL''S190432Await Payment7
AMS2000-002ML2i USB Host Adapter ''FULL''S190380Confimed9
AMS2000-002ML2i USB Host Adapter ''FULL''S190059Closed2
  • Hi,

    Drag columns1,2 and 4 to the Table visual and write this measure

    =SUM(Data[Quantity])

    Hope this helps.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Sorry, in the summary table, I do not need the "OURREF" column

    • HotChilli's avatar
      HotChilli
      Community Champion
      Table = SUMMARIZECOLUMNS(Table1[ITEMNUMBER], Table1[DESCRIPTION], Table1[Status_order], "Quantity", SUM(Table1[Quantity]))

      If I can assume that there is a slight mistake in your desired table (the extra 'Closed' status line)

  • Hi,

    Drag columns1,2 and 4 to the Table visual and write this measure

    =SUM(Data[Quantity])

    Hope this helps.