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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Show Latest Survey Results Based on Date Filter

Hi,

I have two tables, one is a generic calendar and the other is survey results.

I am trying to create a flag so that only the most recent survey results show for a customer, though I want this to be dynamic and influenced by whatever filtering has been place on the calendar table. How do I go about achieving this?

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Only solution that I was able to find was to create a measure to flag which is the latest survey based on the filtered date range (current date vs. max date) and then reference that measure when creating any subsequent measures. Was not able to find a solution which allowed for a toggle but this has worked well enough

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Only solution that I was able to find was to create a measure to flag which is the latest survey based on the filtered date range (current date vs. max date) and then reference that measure when creating any subsequent measures. Was not able to find a solution which allowed for a toggle but this has worked well enough

Anonymous
Not applicable

Hi @Anonymous ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1710836208055.png

vjiewumsft_1-1710836222648.png

2.Create the relationship between two tables.

vjiewumsft_2-1710836232508.png

3.Drag the date into the slicer.

vjiewumsft_3-1710836239364.png

4.Create the measure to filter.

 

Survey flag = 
VAR sur = SELECTEDVALUE(survey[survey])
RETURN
IF(sur = "customer", 1, 0)

 

5.Drag the measure to the Filters pane and set the show items is 1.

vjiewumsft_4-1710836288267.png

6.The result is shown below.

vjiewumsft_5-1710836298081.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

lbendlin
Super User
Super User

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.