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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Filters affecting Dynamic Text

Hello,

 

I have a text box that populates key dates for a given report. These dynamic values sometimes will not populate when the user filters the report, and I can't understand why. Has anyone come across this, and if so, how to prevent it?

Text box description showing dates, unfiltered:

cbschley_0-1731003217662.png

 

 

When user filters the report using the side-bar filters:

cbschley_1-1731003257517.png

 

7 REPLIES 7
hnguy71
Super User
Super User

Hi @Anonymous 

That greatly depends on the values being used in your text box visual. It's blank because the value is out of context for the filters being applied.  Can you share a sample calculation for one of the dynamic values?



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

@hnguy71 yes sorry if that was confusing at all.

For the screenshot where it shows "11/1/2024", that is coming from this calculated column:

STARTDATE_BOM = DATE(YEAR(DEMAND[STARTDATE]),MONTH(DEMAND[STARTDATE]),1)

In this DAX calculation, STARTDATE is just the current date, and it is populated for every row in the dataset. I am effectively truncating it to the beginning of the month.

Hi @Anonymous ,
And how are you selecting the date? What's the measure value inside your text box?



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
Anonymous
Not applicable

I input the measure as a value in the text box like this:

cbschley_0-1731008065840.png

 

Hi @Anonymous 

Because that column is a calculated result, it doesn't update according to the filter context being applied. You'll need to create a measure and then replace your STARTDATE_BOM with the new measure.

Step 01: Create a measure:

hnguy71_0-1731020060538.png

Step 02: Insert code, replacing "Table" with your actual table name:

 

StartOfWeek = 
 VAR _SelectedDate = SELECTEDVALUE('Table'[Date], MAX('Table'[Date]))
 RETURN
 _SelectedDate - WEEKDAY(_SelectedDate, 3)

 


Step 03: Replace your dynamic text with your new measure name and click save:

hnguy71_1-1731020233286.png


As an example output, you can see if I select December 03, I return Dec 02 as my start of the week:

hnguy71_2-1731020288640.png

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

hi @Anonymous ,

 

try like:

STARTDATE_BOM =

EOMONTH(MAX(DEMAND[STARTDATE]), -1)+1

Anonymous
Not applicable

Unfortunately this results in the same outcome with the value not populating

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.