Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
6 |