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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Alina-R
New Member

Average score 7 days after the selected date

A beginner question 🙂

 

We have a recurring monthly event that we use the same survey for - SurveyMonkey connecte to PowerBi.

We usually get responses within 5-6 days after the event. On the right there is a list of event dates, from event plan table. I need help showing average score for the event on selected date - so I'm thinking a measure that will display average of score for 7 days following selected date. 

 

 

Screenshot 2023-04-28 at 14.42.23.png

2 REPLIES 2
amitchandak
Super User
Super User

@Alina-R , You need have date/table of date(no timestamp)  . it should not join with event table

 

then you can have measure like this displayed with event date or joined date table 

 

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = _max -5
return
calculate( Average(Event[Score]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))

 

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit,

Thanks for your reply. Unfortunately I can't quite get it to work. There is no error in measure itself, but it won't display:

Screenshot 2023-05-05 at 15.13.10.png

 

"Communication plan" has date and is joined with Event table.

Date1 is independent date table.

 

What am I doing wrong?

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.