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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
cbschley
Helper III
Helper III

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 @cbschley 

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!

@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 @cbschley ,
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!

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

cbschley_0-1731008065840.png

 

Hi @cbschley 

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 @cbschley ,

 

try like:

STARTDATE_BOM =

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

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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