Query (3,2) the “5” argument in the SUMMARIZE function is required.

  • Query (3,2) the “5” argument in the SUMMARIZE function is required.

    Posted by DSC Communities on June 25, 2020 at 5:57 am
    • GĆ©rard Ducouret

      Member

      June 25, 2020 at 5:57 AM

      Hi,
      I copied the following query from “The Definitive Guide to DAX” page 422 but I always get an errorĀ  in DAX studio:
      Query (3,2) the “5” argument in the SUMMARIZE function is required.

      EVALUATE
      ADDCOLUMNS (
      Ā Ā Ā Ā SUMMARIZE (
      Ā Ā Ā Ā Ā Ā Ā Ā Sales,
      Ā Ā Ā Ā Ā Ā Ā Ā ‘Date'[Calendar Year],
      Ā Ā Ā Ā Ā Ā Ā Ā ‘Date'[Month],
      Ā Ā Ā Ā Ā Ā Ā Ā ‘Date'[Month Number],
      Ā Ā Ā Ā ),
      Ā Ā Ā Ā “Amt”, AVERAGEX (
      Ā Ā Ā Ā Ā Ā Ā Ā RELATEDTABLE ( Sales ),
      Ā Ā Ā Ā Ā Ā Ā Ā Sales[Quantity] * Sales[Net Price]
      Ā Ā Ā Ā )
      )
      ORDER BY
      Ā Ā Ā Ā ‘Date'[Calendar Year],
      Ā Ā Ā Ā ‘Date'[Month Number]

      What did I miss?

      Thanks for your help

      ——————————
      GƩrard Ducouret
      ——————————

    • Alison Box

      Member

      June 26, 2020 at 3:34 AM

      Hi Gerard
      There should be no comma after “Date[Month Number]”

      ——————————
      Alison Box
      Burningsuit Ltd
      0800 0199 746
      ——————————
      ——————————————-

    • GĆ©rard Ducouret

      Member

      June 26, 2020 at 6:12 AM

      Hi Alison,
      Great! That work!
      NB : The error was also in the book. Strange ,

      ——————————
      GƩrard Ducouret
      ——————————
      ——————————————-

    DSC Communities replied 5 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Query (3,2) the “5” argument in the SUMMARIZE function is required.’ 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!