cancel
Showing results for 
Search instead for 
Did you mean: 
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))

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

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
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors
Top Kudoed Authors