Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I m looking for a measure which can give me the average age of clients invoices history. For that, I ve a table (named FacturationSommaire) with for each invoice:
IdClient - Issue Date - amount
I would like to have the average duration for all clients and for each client
I tried to do like that but i doesnt work:
GEOMEANX(FacturationSommaire;datediff(minx(FacturationSommaire;[Issue Date]);maxx(FacturationSommaire;[Issue Date]);day))
Tank you for help
Solved! Go to Solution.
I suggest you create a calculated table to summarize the duration calculation into a column group on client level.
Table = SUMMARIZE ( FacturationSommaire, FacturationSommaire[IdClient], "Duration", CALCULATE ( 1 * ( MAX ( FacturationSommaire[Date] ) - MIN ( FacturationSommaire[Date] ) ), ALLEXCEPT ( FacturationSommaire, FacturationSommaire[Client] ) ) )
Then use GEOMEANX() function on that "Duration" column.
Regards,
I suggest you create a calculated table to summarize the duration calculation into a column group on client level.
Table = SUMMARIZE ( FacturationSommaire, FacturationSommaire[IdClient], "Duration", CALCULATE ( 1 * ( MAX ( FacturationSommaire[Date] ) - MIN ( FacturationSommaire[Date] ) ), ALLEXCEPT ( FacturationSommaire, FacturationSommaire[Client] ) ) )
Then use GEOMEANX() function on that "Duration" column.
Regards,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |