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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

dynamic text box using filtered date

Hello, 

 

I would like to create a text box to add a title for my report which includes the dates applied in the date filter.
The title would look like "Results between XX/XX/XXXX and XX/XX/XXXX"

Thank you for your help
Pauline

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

Please try to write the below DAX measure for your title.

 

Titlename =
"Results between " & MIN( dates[Date]) & " and " & MAX(dates[Date])
 

Jihwan Kim

If this post helps, then please consider accept it as the solution to help the other members find it more quickly.

 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, I think you can create a measure and set the text box title as the value of the measure to achieve this, you can try my steps:

  1. Create a measure like this:
Title =
var _min=MINX(ALLSELECTED('Date'),[Date])
var _max=MAXX(ALLSELECTED('Date'),[Date])
return
"Results between "&_min&" and "&_max
  1. Add a text box and set the title like this:

v-robertq-msft_0-1617004845702.png

v-robertq-msft_1-1617004845704.png

And add a date slicer to your page, then you can get what you want, like this:

v-robertq-msft_2-1617004845706.png

 

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

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

View solution in original post

5 REPLIES 5
Mal_Sondh
Helper II
Helper II

@

 

Are you able to re-attach the link to the pbi as i would like to view how you have done this..

Hi, 

Sorry, my OneDrive account has been expired and the pbix file has been deleted.

 

Best Regards,

Community Support Team _Robert Qin

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

Anonymous
Not applicable

Thanks @v-robertq-msft and @Jihwan_Kim 

It works but it's a shame that we have to create a measure for each chart title if we want it to be different.

Have a nice day

v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, I think you can create a measure and set the text box title as the value of the measure to achieve this, you can try my steps:

  1. Create a measure like this:
Title =
var _min=MINX(ALLSELECTED('Date'),[Date])
var _max=MAXX(ALLSELECTED('Date'),[Date])
return
"Results between "&_min&" and "&_max
  1. Add a text box and set the title like this:

v-robertq-msft_0-1617004845702.png

v-robertq-msft_1-1617004845704.png

And add a date slicer to your page, then you can get what you want, like this:

v-robertq-msft_2-1617004845706.png

 

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

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

Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

Please try to write the below DAX measure for your title.

 

Titlename =
"Results between " & MIN( dates[Date]) & " and " & MAX(dates[Date])
 

Jihwan Kim

If this post helps, then please consider accept it as the solution to help the other members find it more quickly.

 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors