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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
saiprathapdp
Frequent Visitor

Dynamic filters has to be add in to the text box

Im looking to make a dynamic text box indicating what the months are for the current filter. For example, I have a last calendar month relative data filter. I need the text box to say:

The current month displayed is from 5/1/2021-5/31/2021

 

we have applied filters like below.

saiprathapdp_0-1624171563703.png

saiprathapdp_1-1624171580624.png

 

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @saiprathapdp 

do you mean you want to dynamically get the value of the filters on this visual?

e.g.

vxiaotang_0-1624355848911.png

if yes, I've tested and find the value can't be achieved by Allselected() function. so I think Filters on this visual won't apply filter to table, it only affect the display of the visual.

e.g.

vxiaotang_1-1624356567952.png

so I suggest you to use the slicer and creat the filtermeasure or use the method mentioned by Fowmy

 

 

Best Regards,

Community Support Team _ Tang

If this post helps, please consider Accept it as the solution✔️ to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @saiprathapdp 

do you mean you want to dynamically get the value of the filters on this visual?

e.g.

vxiaotang_0-1624355848911.png

if yes, I've tested and find the value can't be achieved by Allselected() function. so I think Filters on this visual won't apply filter to table, it only affect the display of the visual.

e.g.

vxiaotang_1-1624356567952.png

so I suggest you to use the slicer and creat the filtermeasure or use the method mentioned by Fowmy

 

 

Best Regards,

Community Support Team _ Tang

If this post helps, please consider Accept it as the solution✔️ to help the other members find it more quickly.

Fowmy
Super User
Super User

@saiprathapdp 

Relative Date frilter works on the current date so you can create the following measure and use it on a card visual:

Date Period = 
    FORMAT( EOMONTH(TODAY(),-1)+1 , "dd/mm/yyyy" ) & "-" &
    FORMAT( EOMONTH(TODAY(),0), "dd/mm/yyyy" )



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.