Forum Discussion

yatinpurohit's avatar
yatinpurohit
Icon for Helper I rankHelper I
8 years ago
Solved

Create 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....
  • v-xjiin-msft's avatar
    v-xjiin-msft
    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.