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

So I am trying to show average handle time per day with bars and the average of the month with a line. So I wrote a dax fuction but when I want to see the day by day it ended being the quantity of the bars which makes senses so I am stuck. I also do not want to use all since it will not work with any filter if do so.

 

So for the bar ir drag the column Select average but for the líne I am not sure what fax function i should use so i get the average of the month. I dont want yo use "ALL" since it would not work with Any filter 

 

AHT = AVERAGE(Base[duracion_minuto])

 

AlekseiNexa_0-1599960093748.png

 

1 ACCEPTED SOLUTION

Hi @Anonymous 

Try the below measure

 

Calculate(AVERAGE(Base[duracion_minuto]), allexcept(Base,FORMAT(Base[date],"YYYY-MM")))

or

Post the sample data

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

View solution in original post

4 REPLIES 4
pranit828
Community Champion
Community Champion

Hi @Anonymous 

Use the line and clustered column chart and put handle time in the line values section select average as shown below.

pranit828_0-1599968263872.png

 

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
Anonymous
Not applicable

@pranit828  i am usi g average gor the bars so i can ser the daily average but u Wanna compare the daily average with the monthly average 

Hi @Anonymous 

Try the below measure

 

Calculate(AVERAGE(Base[duracion_minuto]), allexcept(Base,FORMAT(Base[date],"YYYY-MM")))

or

Post the sample data

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
Anonymous
Not applicable

@pranit828 I had to check allexcept and I used on my calendar table and it worked! thanks!!

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.

Top Solution Authors