This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have some easy task to do - I want to filter Date table based on year taken from date picker. Here are my measures:
1. Measure which extracts year from date picker
Selected Date =
CALCULATE(
YEAR(MAX( DateTable[Date] )),
ALLSELECTED( DateTable[Date] )
)
2. Calculated table where I use above measure to filter Date table
VAR vSelectedDate = [Selected Date]
VAR vCustomersNotInYear =
CALCULATETABLE(
VALUES('DateTable'[Year]),
'DateTable'[Year] < vSelectedDate
)
RETURN vCustomersNotInYear
I checked, that measure [Selected Date] returns year properly, it's a number. Year in Date table is also a number. When I change date on a picker then Calculated table doesn' react. However, when I assign years manullay e.g.:
'DateTable'[Year] = 2010
then it works fine. I also tried to explicitly enforce converting measure to number (just in case):
VAR vSelectedDate = VALUE([Selected Date])
but it also doesn't help. Where the problem lies?
Solved! Go to Solution.
hi @Camill88 ,
You can reference a measure in a calculated table. But calculated table/column are not supposed to respond to the slicer actions(even any visual actions). That is the only reason behind.
hi @Camill88 ,
You can reference a measure in a calculated table. But calculated table/column are not supposed to respond to the slicer actions(even any visual actions). That is the only reason behind.
Ok, thanks. So what should I do in this case? Add calculated table to modela and establish relationship to fact table? What's the good practice here?
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 28 | |
| 28 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 37 | |
| 32 | |
| 28 | |
| 24 |