Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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
@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:
@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:
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.
add a table Myslicer Dates = CALENDERAUTO() to your model and use it as the date for the slicer ;). reference it you your table.
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]))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |