cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnbradbury
Helper III
Helper III

Average Volumes by Date

I have a column called 'Logged Date' which takes the format of 31/08/2018 23:57:14

 

I want to build a bar graph to show the average volume of enteries by day (Monday, Tuesday, Wednesday etc..).

 

 

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

Hi @johnbradbury,

 

I made one sample for your reference.

 

1. Enter the sample data and create a calculated column.

 

weekday = FORMAT(Table1[Time],"ddd")

2. Create a measure as below.

 

Measure = CALCULATE(SUM(Table1[sales]))/COUNTROWS(Table1)

Capture.PNG

 

For more details, please check the pbix as attached.

 

Regards,

Frank

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @johnbradbury,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
v-frfei-msft
Community Support
Community Support

Hi @johnbradbury,

 

I made one sample for your reference.

 

1. Enter the sample data and create a calculated column.

 

weekday = FORMAT(Table1[Time],"ddd")

2. Create a measure as below.

 

Measure = CALCULATE(SUM(Table1[sales]))/COUNTROWS(Table1)

Capture.PNG

 

For more details, please check the pbix as attached.

 

Regards,

Frank

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

 

Try this

 

  1. Create a calculated column formula to extract the Data from the Date/time stamp Date=INT(Data[Logged Date]).  Format this column as Date
  2. Create a Calendar Table
  3. Create a relationship from the Date column of the Base data table to the Date column of the Calendar Table
  4. In the Calendar Table, write thi calculated column formula to extract the Day of the week DoW=FORMAT(Calendar[Date],"dddd")
  5. IN yoru visual drag DoW from the Calendar Table
  6. Write this measure

 

=COUNTROWS(Data)

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors