Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi community,
I have the following DAX to calculated indices based on the set base date. In my DAX right now the base date is static and set at 01.31.2022, which works fine and also gives the right outputs over time. But if I would subsitute the static base date with VAR SelectedBaseDate = SELECTEDVALUE(CalendarTable[Date]) (slicer selection) it doesn't work anymore. Can someone help me?
First DAX:
Hi Yang,
thanks for reaching out. It still doesn't work, the measure work with a static date, but doesn't take the value from the slicer. Do you have any recommendations why the slicer value is not taken by the measure DAX? Thanks!
Best
Hi, @cinni_mini
Based on your description, I have created some measures to achieve the effect you are looking for. Following picture shows the effect of the display.
Measure:
Base Date Index Value =
VAR _selectedBaseDate =
SELECTEDVALUE ( CalendarTable[Component Index Date] )
VAR _baseDateIndexValue =
CALCULATE (
MAX ( Component_Index_Values[Component Index Value] ),
FILTER (
Component_Index_Values,
Component_Index_Values[Component Index Date] = _selectedBaseDate
),
ALL ( Component_Index_Values )
)
RETURN
_baseDateIndexValue
If this does not work, could you please share some sample data without sensitive information and expected output.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
11 | |
9 | |
8 | |
8 |