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 not working as expected

I have an table called "Suporte", each rows represents one "quantity", so, I made a column like this "Quantidade = 1", given an ordinary graphic, the sum function works fine! But average doesn't 😞

 

Here is the screenshot:

Sem Título-1.png

 

Any help?

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hello, The Average of a list of 1s is 1.

 

 




Lima - Peru

View solution in original post

6 REPLIES 6
v-huizhn-msft
Employee
Employee

Hi @Anonymous,

Have you resoved your issue? You select the Average(highlighted in yellow background), it doesn't work? Could you please post more details for further analysis?

1.PNG

Best Regards,
Angelia

Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hello, The Average of a list of 1s is 1.

 

 




Lima - Peru

What result are you expecting instead of 1?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Sorry, my example wasn't so good. If my drilldown is focusing on year, whats the average by month, if is focusing on month, whats the average by weekday.

Anonymous
Not applicable

It will probably be somewhat tricky to get the dynamic behavior you are looking for (sometimes average per month, sometimes average per day).  Doable, but not trivial.

 

In general, I would think about your average as  DIVIDE([Total Quantity], [Total Periods])

If you were talking the average per month... [Total Periods] could be something like DISTINCTCOUNT(Calendar[MonthNum]).  For per day average, probably just COUNTROWS(Calendar).

Through some   IF (ISFILTERED(...) )  you can likely get what you want ...

@Anonymousthe time frame doesn't matter. As @Vvelarde said, if every value is 1, the average is 1.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.