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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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