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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Create Conditional Filter

Hello Community Members,

 

I am trying to create a conditional filter. Basically i have two dates columns -- Create Date and Request Date.

 on all my tabs -- i will use create date as a filter to give range filter, now i want to create a hidden filter which says

 

Request date >=2018 and Request Date <= Create date's end date 

 

 

error5.PNG

7 REPLIES 7
amitchandak
Super User
Super User

@Anonymous , this condition you have to give in you measure filter

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Tahreem24
Super User
Super User

@Anonymous ,

Create DAX Column like below:

Date Status = IF(Request date >=2018 && Request Date <= Create end date ,1,0)

Then on visual level filter of your date range slicer select 1 from DateStatus created above. Just like below SS:

Capture.PNG

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 Thanks, but I tried this at the first place, this gives me wrong value, lets say if Create date slicer is set to Jan 2019 till dec 2019 then the request date also filtered out, I want irrespective of create date Dec 2019 selection it should give me all values of request date till 2020.

Hi @Anonymous ,

 

Create a calculated column as below:

 

Date available = IF('Table'[Request Date]>=DATE(2018,1,1)&&'Table'[Request Date]<=MAX('Table'[Create Date]),1,0)

 

Then in the slicer of "create date",put the column in the filter field and select 1,see as below:

Annotation 2020-06-05 143008.png

For the related .pbix file,pls click here.

If it is not what you need ,show me your expected output via my sample data.

Much appreciated.

 

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
rubinboer
Resolver II
Resolver II

add a table Myslicer Dates = CALENDERAUTO() to your model and use it as the date for the slicer ;). reference it you your table.

Anonymous
Not applicable

thts not the requirement.

sorry i could not get that frm the reuirement. as the slicer is move the visuals adjust to the max date of the slicer. by have calender fix to your date , why the second filter?

use CALENDAR(date you want to start from 2018, max(MAX(YourTable[CreateDate]))

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.