Forum Discussion

themistoklis's avatar
themistoklis
Community Champion
7 years ago
Solved

Filter table based on Calculated Measure(s), using DAX formulas

Hello im having a table (object on a sheet) on powerBI which i would like to filter its rows based on certain column(s).

This column(s) is a calculate measure. In our case if a value is below a certain percentage then dont show, the row this value belong to, on the table.

The calculated measures on the table are names: "% AVG Effort 1 Cost" and "% AVG Effort 2 Cost"

1. I would like on the following table to filter out the rows where % AVG Effort 1 Cost < 20%. After the filtering the table will only have 3 rows. I prefer to have a separate field which i can use it to filter out the rows, but im open to suggestions on this.

2. I would also like to filter out the rows based on both calculated measures "% AVG Effort 1 Cost" and "% AVG Effort 2 Cost"

E.g. Filter out rows where % AVG Effort 1 Cost < 20% AND % AVG Effort 2 Cost > 40%

 

The powerBI workspace is also available on this link

 

Thanks a lot

 

 

  • venug20

    Thank you for this partial solution.

    There is one limitation though. The total row still shows data including the outliers.

     

    I found a better filtering which also shows the correct total which is the following one.

    I will add both yours and mine so as to help other readers:

    Yours:

     

    % AVG Effort 2 Cost 2 = IF([% AVG Effort 2 Cost] > 0.40, [% AVG Effort 2 Cost], BLANK())

    Mine:

     

    % AVG Effort 2 Cost 2 = CALCULATE([% AVG Effort 2 Cost];FILTER(Calculated_Measures;[% AVG Effort 2 Cost]>=0.4))

     

    This is a great alternative

     

     

2 Replies

    • themistoklis's avatar
      themistoklis
      Community Champion

      venug20

      Thank you for this partial solution.

      There is one limitation though. The total row still shows data including the outliers.

       

      I found a better filtering which also shows the correct total which is the following one.

      I will add both yours and mine so as to help other readers:

      Yours:

       

      % AVG Effort 2 Cost 2 = IF([% AVG Effort 2 Cost] > 0.40, [% AVG Effort 2 Cost], BLANK())

      Mine:

       

      % AVG Effort 2 Cost 2 = CALCULATE([% AVG Effort 2 Cost];FILTER(Calculated_Measures;[% AVG Effort 2 Cost]>=0.4))

       

      This is a great alternative