Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

average of distinct count (promedio de la suma de un distinct count)

tengo esta tabla origen que muestra un campo con formato texto (string) de los últimos 7 días

 

sth (string)fecha
1A18/07/2022
1A18/07/2022
1A18/07/2022
1A18/07/2022
1A18/07/2022
1A18/07/2022
2B19/07/2022
3C20/07/2022
3C20/07/2022
3C20/07/2022
4D21/07/2022
5E22/07/2022
6F23/07/2022
6F23/07/2022
6F23/07/2022
6F23/07/2022
6F23/07/2022
6F23/07/2022
6F23/07/2022
6F23/07/2022
7G24/07/2022
7G24/07/2022
7G24/07/2022
8H25/07/2022
9L26/07/2022
9L26/07/2022
9L26/07/2022
0M27/07/2022
0M27/07/2022

 

Quisera obtener una medida donde resulte el promedio de los dístinct count por día y este cambie de acuerdo a los útlimos 7 días. 

 

Recuento de sthfecha
618/07/2022
119/07/2022
320/07/2022
121/07/2022
122/07/2022
823/07/2022
324/07/2022
125/07/2022
326/07/2022
227/07/2022
29sum
10distinctcount of sth

 

el resultado a obtener es el siguiente:  29/10 = 2.9

 

dax_coder_0-1658863491544.png

Gracias por sus comentarios

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You could create a measure.

aver = DIVIDE( COUNT('Table'[sth (string)]),DISTINCTCOUNT('Table'[sth (string)]))

The final show:

vyalanwumsft_0-1659063076050.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You could create a measure.

aver = DIVIDE( COUNT('Table'[sth (string)]),DISTINCTCOUNT('Table'[sth (string)]))

The final show:

vyalanwumsft_0-1659063076050.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Try a measure like

 

AverageX(Values(Table[fecha]) , calculate(distinctcount(Table[sth])) )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors