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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.