Forum Discussion

romidarmawan's avatar
romidarmawan
New Member
8 years ago
Solved

How to filter columns and rows in a table based on certain value on another column

Hi, I am a new user of Power BI. Could you please help me with the following issue:   I have a table with a lot of columns. I would like to use a DAX function in which it will only show some column...
  • v-yulgu-msft's avatar
    8 years ago

    Hi romidarmawan,

     

    Please new a calculated table with below DAX formula:

    Result Table =
    SELECTCOLUMNS (
        FILTER ( 'TData', Data[Coverage Days] < 5 ),
        "Name", Data[Name],
        "Value", Data[Value]
    )

    Alternatively, you can achieve this result via table visual without writing DAX.

    Add Data[Name], Data[Value] to a Table visual. Add Data[Coverage Days] to visual level filter and set its value to <5.

     

    Best regards,

    Yuliana Gu