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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DarshG
Frequent Visitor

Get the Start and End Date from a slicer based on a field not part of Date Table

Hi,

I have a date field called DTime in a Transactions table. I want to get the Start and End Date selected in the slicer on this DTime field. I already tried MIN/ MAX but it shows the oldest and latest date in the DTime column and not the Start and End from the slicer.

e.g. Date Selected in Slicer: 4/1/2024 - 9/30/2024

Value extracted using CALCULATE/ MIN/ MAX = 1/1/1990 - 12/31/2024

Expected Output: 4/1/2024 - 9/30/2024

2 REPLIES 2
Anonymous
Not applicable

Hi @DarshG ,

 

You need to use the unrelated date table for the extraction because the related date table will filter the data table, and since the date table is continuous, it will return the original data when it is not included in the date you are filtering.

vtianyichmsft_0-1728626862803.png

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

 

ToddChitt
Super User
Super User

I think you need the SELECTEDVALUE function, then because that could be multiple dates in the slicer, wrap that in MIN and MAX functions.

But really, I am not 100% sure of what you are trying to accomplish here. Can you supply some sample data points, with desired output?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors