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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I am trying to create a table with dates and values. The value is the same for each day and depends on the selected values of a slicer (single selection).
I tried to use the ALLSELECTED function but it ignores the slicer.
So I thought using a FILTER should work:
KPI_Targets =
VAR BaseCalendar =
CALENDAR(DATE(2019,4,1), DATE(2021,31,12))
RETURN
GENERATE(
BaseCalendar,
VAR BaseDate = [Date]
VAR Target =
CALCULATE(
COUNT(Equipments[Id])/365,
FILTER(Locations,[Title]=SELECTEDVALUE(Locations[Title]))
)
RETURN ROW(
"Target",Target
)
)
On its own, SELECTEDVALUE(Locations[Title]) gives me the correct result but when I use it inside the formula above it does not work.
Any hints?
Thanks,
Lukas
@amitchandak thanks for letting me know. Do you have an idea how I can achieve my goal (creating a table with dates in column 1 and a fixed value based on a slicer selection in column 2) instead?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |