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 per day with multiple values each day

Hi,
I am doing a report where I would like to get the average for each day. 

The issue I am facing is that there is multiple values on each day which is making the average much lower than expected. 

 

The table contains one row per pause. First of all it needs to be sum of duration per day since it is multiple values each day.
Then I need to get an average per week (existing relatonship with a date table). When I am doing the average right now I am getting a very low average since it is calculating the average per row and not sum per day per membername.

Jakob_Andersson_2-1645518560136.png

Jakob_Andersson_3-1645518837288.png

 

 

 

 

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

Hi @Anonymous ,

Please refer to my pbix to see if it helps you.

The relationship between the tables.

vpollymsft_0-1646878825016.png

 

Then create a measure.

 

Measure = CALCULATE(AVERAGE('Table'[DURATION_Seconds]),FILTER(ALL('Table'),'Table'[date]=SELECTEDVALUE('Table 2'[Date])))

 

vpollymsft_0-1645775209613.png

 

 Could you tell that you want to calculate Average per day or Average per week?

 

If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.

 

 

Best Regards

Community Support Team _ Polly

 

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-rongtiep-msft
Community Support
Community Support

Hi @Anonymous ,

Please refer to my pbix to see if it helps you.

The relationship between the tables.

vpollymsft_0-1646878825016.png

 

Then create a measure.

 

Measure = CALCULATE(AVERAGE('Table'[DURATION_Seconds]),FILTER(ALL('Table'),'Table'[date]=SELECTEDVALUE('Table 2'[Date])))

 

vpollymsft_0-1645775209613.png

 

 Could you tell that you want to calculate Average per day or Average per week?

 

If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.

 

 

Best Regards

Community Support Team _ Polly

 

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 , A measure like this can do Sum on day level and Avg post that

 

averageX(values('Date'[Date]), calculate(Sum(Table[Duration])))

 

You can use this measure in WOW formula

 

refer if needed

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8

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.