Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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!
User | Count |
---|---|
92 | |
85 | |
77 | |
66 | |
62 |
User | Count |
---|---|
110 | |
95 | |
95 | |
64 | |
59 |