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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
venal
Memorable Member
Memorable Member

Filtering - Help

Hi Team,

Greetings.!

I have a data with date column and taking that date column in 2 slicers as FromDate and ToDate. Whenever i select FromDate slicer, Todate also changing and showing the dates as per FromDate selection. But we dont want to change the dates in ToDate slicer as per FromDate slicer selection, It needs to select by the user and then select the dates from ToDate slicer.
Based on the FromDate and ToDate selection, I need to show the data in Table visual as FromDate selection data as "Previous Price" and ToDate selection data as "Current Price".

 

I will attach the screenshot file for reference.

venal_0-1638156298317.png

After FromDate selection, Please see

Any suggestions on this please, Thank you in advance.

 

@venal 

2 REPLIES 2
amitchandak
Super User
Super User

@venal , Based on what I got so far, You need a measure like

 

measure =
var _max = maxx(allselected('Date'),'Date'[Date])
var _min = minx(allselected('Date'),'Date'[Date])
return
calculate(min(Price), filter('Date', 'Date'[Date]=_max)) - calculate(min(Price), filter('Date', 'Date'[Date]=_min))

Hi @amitchandak 

 

Thank you for the response. It is not working as expected.

Can you please share the link to provide the PBIX file for reference.

 

@venal 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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