Forum Discussion
Filters affecting Dynamic Text
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:
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?
- Anonymous1 year agoNot applicable
I input the measure as a value in the text box like this:
- hnguy711 year agoSuper User
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: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:
As an example output, you can see if I select December 03, I return Dec 02 as my start of the week: