Forum Discussion
Creating a table in DAX using a fliter
Ian_Stuart_Rupe what is the expression of [Selected Student Key] measure
parry2k here you go:
- parry2k7 years ago
Super User
Ian_Stuart_Rupe so your fact doesn't have relationship with Dim_Student?? if yes then why you need to filter, once you filter dim student it will filter fact table?
- parry2k7 years ago
Super User
Ian_Stuart_Rupe sorry read your post again, seems like you are trying to create a table with filtered student, unfortunately you cannot pass slicer value to when creating table using DAX and that is the reason your first expression works and 2nd one doesn't.
So question here is why you need a table?
- Ian_Stuart_Rupe7 years ago
Advocate III
Thanks again parry2k The user wants to be able to fliter Dim_Student from attributes that are in Dim_Course. There is no direct relationship between these two tables but there is Fact_Event in between. One to many relationships from dims to the fact and single filter direction.rELATIONSHIPS
The filters (which they want on the filter pane) should only show those Dim_Course rows for which there are associated Dim_Student events. Make sense?
Creating this filtered fact table was my idea of a step along the journey to create a filtered Dim_Course table that I could use in the filter.
I suspect there is a better way!!