The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
How can I count the average time a client will appear in a list.
For example, in the below list, the average number of times a client appears is 2 (Client 1 appears twice, Client 2 Once & Client 3 three times)
Client 1
Client 2
Client 3
Client 1
Client3
Client 3
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new measure.
Average times a client appears measure: =
AVERAGEX (
ADDCOLUMNS (
VALUES ( Data[Client] ),
"@count", CALCULATE ( COUNTROWS ( Data ) )
),
[@count]
)
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new measure.
Average times a client appears measure: =
AVERAGEX (
ADDCOLUMNS (
VALUES ( Data[Client] ),
"@count", CALCULATE ( COUNTROWS ( Data ) )
),
[@count]
)
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |