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 have a sample table like this:
date | code |
01/01/2023 | a |
01/01/2023 | b |
01/01/2023 | c |
01/02/2023 | d |
01/02/2023 | e |
01/03/2023 | f |
01/03/2023 | g |
01/03/2023 | h |
01/03/2023 | i |
I do this table with count of code
What I need is a kpi that gives me the average of the count( in this case 3)
How can I do?
Thanks
Solved! Go to Solution.
@Giada90 ,
try this,
Average =
VAR _codeCount = COUNT(
'Table'[code])
VAR _name = DISTINCTCOUNT('Table'[Name])
VAR _result = DIVIDE(_codeCount,_name)
RETURN _result
Thanks,
Arul
try
Count of code =
AVERAGEX (
SUMMARIZE ( 'Table', 'Date'[Year], 'Table'[mese] ),
DISTINCTCOUNT ( 'Table'[Code] )
)
thanks!
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 |
---|---|
105 | |
102 | |
79 | |
71 | |
65 |
User | Count |
---|---|
141 | |
107 | |
100 | |
82 | |
74 |