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
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

 

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.