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

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.

Reply
Anonymous
Not applicable

Average of count

Hello All, 

 

Another problem for me. Can you please help me calculate the average of a count?

 

I have a really simple measure, which counts all the rows of a table and after that i put it in the filter context of region as you can see below:

 

Atanas_0-1593939474177.png

 

Can you help me put average number of processed transactions next to the total?

The expected result for 2019-01 is 9,944

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

Hi @Anonymous 

Create measures

Measure = COUNT('Table 2'[name])

Measure 2 = IF(ISINSCOPE('Table 2'[server name]),[Measure],AVERAGEX(ALL('Table 2'[server name]),[Measure]))

Capture10.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
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

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Create measures

Measure = COUNT('Table 2'[name])

Measure 2 = IF(ISINSCOPE('Table 2'[server name]),[Measure],AVERAGEX(ALL('Table 2'[server name]),[Measure]))

Capture10.JPG

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

az38
Community Champion
Community Champion

Hi @Anonymous 

it's pretty difficult to answer you correct without original data sample, but have a look at averagex() function.

like

CALCULATE(AVERAGEX(Table, 'Table'[Number of Invoices]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38 

 

Thank you, but it didn't worked. Would you please let me know how can i provide you with some sample?

 

Atanas

az38
Community Champion
Community Champion

@Anonymous 

sorry, didn't mention your right pane on the screenshot

built-in matrix visual won't allow you to create a new column next to Total

If you don't need any drill-down option - use a Table. but you will need to create separate measure or column for each region, then total measure, then average.


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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