Forum Discussion
Ian_Stuart_Rupe
7 years agoAdvocate III
Creating a table in DAX using a fliter
I am sure there is a way to do this but I am pulling my hair out!
As a DAX table expression this works (returns expected number of rows):
Filtered Fact = FILTER(Fact_Event,Fact_Event[Dim_Student_Key] = 12071)
Whereas this doesn't (does not filter rows at all):
Filtered Fact = FILTER(Fact_Event,Fact_Event[Dim_Student_Key] = [Selected Student Key])
[Selected Student Key] evaluates to 12071 and is an integer.
What am I doing wrong?
7 Replies
- Ian_Stuart_RupeAdvocate III
and [Selected Student Key] is a measure
- parry2kSuper User
Ian_Stuart_Rupe what is the expression of [Selected Student Key] measure
- Ian_Stuart_RupeAdvocate III
parry2k here you go:
Selected Student Key = SELECTEDVALUE(Dim_Student[Dim_Student_Key])