Forum Discussion

Ian_Stuart_Rupe's avatar
Ian_Stuart_Rupe
Advocate III
7 years ago

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?