Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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,
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |