Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Filter one row in table

Hi all,

 

Is it possible to filter on Cost Centre and that the filter only filters the column EmployeeName in the table? So it will not affect all the other columns in the table?

 

Thanks!

  • Hi, Anonymous 

    According to your description, when you filter the Cost Centre, you want the  filter only filters the column EmployeeName in the table and not affect all the other columns' value?

    This means that your value is only calculated based on your [Cost Centre] and is not affected by the [EmployeeName] field.

    You can write ALL ('Table' [EmployeeName]) to all your metrics to ignore the filtering of the [EmployeeName] field.

    For more information, you can refer to :
    ALL function (DAX) - DAX | Microsoft Learn

    How to Use ALL in a DAX Expression in Power BI - RADACAD

     

     

     

    If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

     

1 Reply

  • Hi, Anonymous 

    According to your description, when you filter the Cost Centre, you want the  filter only filters the column EmployeeName in the table and not affect all the other columns' value?

    This means that your value is only calculated based on your [Cost Centre] and is not affected by the [EmployeeName] field.

    You can write ALL ('Table' [EmployeeName]) to all your metrics to ignore the filtering of the [EmployeeName] field.

    For more information, you can refer to :
    ALL function (DAX) - DAX | Microsoft Learn

    How to Use ALL in a DAX Expression in Power BI - RADACAD

     

     

     

    If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly