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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Average by day of the week

Hello people.

I have this problem. I want to show in a table the average sales for each day of the week, i.e. the average sale on Mondays, the average sales on Tuesdays, and so on.

My DailySales table is related to the calendar table through the columan Date. I have a measure called Sales Valuation that adds up all the values in the SalesAppreciation column of the DailySales table.

joselopez0809_0-1710872814909.png

In addition to the sum of the sale on Monday, I do

I hope someone can help me

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

@Syndicate_Admin 

 

create day of week col in the calendar table. 

drag it to the visual table. 

 

create the following measure : 

averagex ( values ( calendar_table[day of week col ] , [your measure]

)

 

 

let me know if this helps. 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🙏v

View solution in original post

1 REPLY 1
Daniel29195
Super User
Super User

@Syndicate_Admin 

 

create day of week col in the calendar table. 

drag it to the visual table. 

 

create the following measure : 

averagex ( values ( calendar_table[day of week col ] , [your measure]

)

 

 

let me know if this helps. 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🙏v

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.