Average of Counts by Customer

  • Average of Counts by Customer

    Posted by DSC Communities on November 26, 2019 at 3:01 pm
    • Christian ArltX

      Member

      November 26, 2019 at 3:01 PM

      I have a table (OperationLog) of transactions by CustomerId. I need to figure out theĀ total transactions for each CustomerIdĀ and thenĀ the average of all the (totals from each customer)Ā in one Dax formula.

      My hope is to use my linked date table (In Power BI) to see a month view of the overall average number of transactions based on different levels (Year and Month Mostly).

      ——————————
      Beau Arlt
      Business Analyst
      Holland MI
      989-400-7812
      ——————————

    • Lorenzo Vercellati

      Member

      November 27, 2019 at 4:15 AM

      HI,
      you need a measure like this one:

      Measure =
      AVERAGEX(

      SUMMARIZE(
      OperationLog,
      ‘OperationLog'[CustomerID],
      “Transaction count”,
      COUNTROWS(OperationLog)
      ),
      [Transaction count]
      )

      Regards
      Lorenzo

      ——————————
      Lorenzo Vercellati
      PowerBI Solution Architect
      SolidQ
      Milan
      3382819866
      ——————————
      ——————————————-

    • Christian ArltX

      Member

      November 27, 2019 at 2:50 PM

      Hi Lorenzo – I’m going to send you some test data, the dax you submitted..does work.. but appears to not be giving me the correct value. Can you test too? Thanks!

      I need to figure out theĀ total transactions for each CustomerIdĀ and thenĀ the average of all the (totals from each customer)Ā in one Dax formula.
      Filters:Date, Product

      ——————————
      Beau Arlt
      Business Analyst
      Holland MI
      989-400-7812
      ——————————
      ——————————————-

    • Christian ArltX

      Member

      November 27, 2019 at 4:08 PM

      I got it. Once I took out the 0 counts from the months summary sections… it worked perfectly

      ——————————
      Beau Arlt
      Business Analyst
      Holland MI
      989-400-7812
      ——————————
      ——————————————-

    • Lorenzo Vercellati

      Member

      November 28, 2019 at 3:19 AM

      Well done!

      ——————————
      Lorenzo Vercellati
      PowerBI Solution Architect
      SolidQ
      Milan
      3382819866
      ——————————
      ——————————————-

    DSC Communities replied 6 years, 4 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Average of Counts by Customer’ 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!