The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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:
When user filters the report using the side-bar filters:
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?
@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:
Hi @cbschley ,
And how are you selecting the date? What's the measure value inside your text box?
I input the measure as a value in the text box like this:
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:
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:
Unfortunately this results in the same outcome with the value not populating
User | Count |
---|---|
56 | |
54 | |
53 | |
47 | |
30 |
User | Count |
---|---|
175 | |
88 | |
69 | |
48 | |
47 |