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 —————————— ——————————————-
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
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!