Forum Discussion
phaum1967
Resolver I
9 years agomean of max difference between dates by client
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 - am...
- 9 years ago
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,
v-sihou-msft
Microsoft Employee
9 years ago
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,