Forum Discussion
yatinpurohit
Helper I
8 years agoCreate dynamic DAX table filtered by slicer from another table
Good Day everyone, Requesting some help with this issue after searching for over few hour. I have a table with surver responses for events called SurveyList. it has 2 columns Question and Answer....
- 8 years ago
Hi yatinpurohit,
Check this:
First create a new calculated column to calculate the number of Answers for each Question to find out the Distinct values. Something like:
Answer Number = CALCULATE ( COUNT ( SurveyList[Answer] ), ALLEXCEPT ( SurveyList, SurveyList[Question ], SurveyList[Answer] ) )Then create a new calculated table:
New Survery Table = FILTER ( SurveyList, SurveyList[Question ] = "What event you attended" && SurveyList[Answer Number] = 1 )If above method doesn't satisfy your requirement. Please share us more detailed information like some sample data and its corresponding expected result. So that we can know your actual situation and provide more accurate suggestions.
Thanks,
Xi Jin.
MattAllington
Community Champion
8 years agoYou cannot create a dynamic table based on a slicer. I suggest you read this article. https://www.daxpatterns.com/survey/
hachulsiu001
5 years agoFrequent Visitor
Hi MattAllington ,
do you know why I can create dynamic measure using IN ALLSELECTED as filter
ISVEurC1conv =
var per1 = ALLSELECTED(Period1[period1])
return
CALCULATE(sum(q20_Monthly[ISV EURConstConv]),filter(q20_Monthly,q20_Monthly[Document Date.Year Month Number] in per1))
and why the same does not work when I want to create a table using FILTER:
DynTable2 =
var per1= ALLSELECTED(Period1[period1])
return
FILTER(q20_Monthly, q20_Monthly[Document Date.Year Month Number] IN per1)