Summarize

  • Summarize

    Posted by DSC Communities on March 13, 2023 at 5:35 pm
    • Ab Ab

      Member

      March 13, 2023 at 5:35 PM

      Hi,

      I have following columns are in data table Order, Item, Code, Qty, Country code and Tax Code.
      I am trying to summarise the sum of qty each order, item and code, based on the sum of qty, I am trying to get the max qty according to the item, code by using new table.Ā 
      Also, in the new table I want get the most frequency/repeated of country and tax code according to item and code.

      I want the result in New Table by using dax code (not measure) and Power Query options as well.Ā 

      I got the results by creating additional columns in Data Table but unable to apply the no blanks conditions in summary table for country code and tax code columns.

      Additional column for sum qty in data table:

      SUM QTY =Ā 
      CALCULATE(SUM(DATA[Qty]),FILTER(DATA,DATA[Item]=EARLIER(DATA[Item]) &&
      DATA[Order] = EARLIER(DATA[Order])),
      ALLEXCEPT(DATA,DATA[Item]))Ā 

      Result in New Table:

      SUMMRAISE =Ā 
      SUMMARIZE(DATA,
      DATA[Item], DATA[code],
      “Max Qty”, MAX(DATA[SUM QTY]),
      “Country Code”,MAX(DATA[Country Code]),
      “Tax Code”, Max(data[Tax Code]))

      Final result look like:

      I want the same result (refer above mentioned snapshot) without maintain the additional columns in Data Table also apply non blanks conditions in summary table.Ā 

      https://www.dropbox.com/s/x6mc2d3ny4yp6zp/Summarise%20%284-1303%29.pbix?dl=0

      ——————————
      Ab Ab
      Engineering
      ——————————

    DSC Communities replied 2 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Summarize’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!