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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Gresi
Frequent Visitor

Get all Records between two dates based on a slicer selction

Hello at all,

 

i'm looking for a possibility to get all records between two dates from a slicer.

 

That's my slicer for selecting min and max-date.

 

SelectDateRange.JPG

 

Her two measures for getting min and max from slicer:

 

minDate_Selected = CALCULATE(MIN(CalendarDays[Day]);ALLSELECTED(CalendarDays))
maxDate_Selected = CALCULATE(MAX(CalendarDays[Day]);ALLSELECTED(CalendarDays))
 
After that i want to filter the table for getting all records between.
But it looks like the values minDate_Selected and maxDate_Selected will not be taken over for calculation.
 
RecordsInTimeRange.JPG
Now i want to show all records in a timeline like this.
 
timeline.JPG
It would be great if anyone can help me please.
 
Thank you in advance, Gresi
1 ACCEPTED SOLUTION

Hi at all,

thanks for the answers.

An addendum again.

 

In the timeline below, the values of both substitutedStart and substitutedEnd are shown.

 

4.png5.png

 

 

6.jpg

 

minDateTime_Selected and maxDateTime_Selected are determined as follows.

 

1.png2.png3.png

In future, however, minDate_Selected and minTime_Selected as well as maxDateSelected and maxTimeSelected should no longer be hard coded but be selectable via a slicer.

 

My main problem is that I get the values that come from a slicer not in the editor.

So I can not expect it.

 

Maybe anyone knows.

 

Thanks, Gresi

 

View solution in original post

15 REPLIES 15

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.