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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
alexbalazsalex
Helper IV
Helper IV

ISfiltered to show date selected in filter (in date format ) not true or false

Dear all i would need your support for a quick formula.

 

I ve created a new date dable separate from my DB not to effect the results .

 

than i created a slicer for selecting the date ... the date selected is affecting one of my fomulas so the results has to be date format.

 

Capture.PNG

 

so in the given picture i have the date filter and i want to show instead of "True" the date selected in date format.

 

At the moment i used this formula and giving me True:

 

Month Under Analysis = ISFILTERED(Table1[Month Under Analysis])

 

Any Ideas ?

 

Thanks

1 ACCEPTED SOLUTION
v-xjiin-msft
Solution Sage
Solution Sage

Hi @alexbalazsalex,

 

ISFILTERED() function returns TRUE when columnName is being filtered directly. If there is no filter on the column or if the filtering happens because a different column in the same table or in a related table is being filtered then the function returns FALSE. So the result will be boolean if you use ISFILTERED() function in measure.

 

Then if you want to get current selected Slicer value. You can use SELECTEDVALUE() function.

 

1.PNG

 

Thanks,
Xi Jin.

View solution in original post

2 REPLIES 2
v-xjiin-msft
Solution Sage
Solution Sage

Hi @alexbalazsalex,

 

ISFILTERED() function returns TRUE when columnName is being filtered directly. If there is no filter on the column or if the filtering happens because a different column in the same table or in a related table is being filtered then the function returns FALSE. So the result will be boolean if you use ISFILTERED() function in measure.

 

Then if you want to get current selected Slicer value. You can use SELECTEDVALUE() function.

 

1.PNG

 

Thanks,
Xi Jin.

Hi @v-xjiin-msft

 

Works Perfeclty Thank you!!!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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