Forum Discussion

moconnor1980's avatar
moconnor1980
New Member
3 years ago
Solved

Matrix/Table Help

Hi all,

Hope someone might be able to help out as I'm quite new to Power BI.

I've a matrix/table (I'll use whichever makes this work) with Values that I only want to show "ID' that has a value in Column "[Total] Potential Revenue" & hide anything that has data with "Total Rev Measure" as per the below image, I only want to keep those with the red line beside it and hide the others.

Many thanks,

Mark

 

  • Hi , moconnor1980 

    According to your description, you want to "show "ID' that has a value in Column "[Total] Potential Revenue" & hide anything that has data with "Total Rev Measure" as per the below image".Right?

    Here are the steps you can refer to :
    (1)This is my test data :

    In my test data , you need to keep the [ID]=2,3.

    (2)We can create a measure :

    Flag = 
     var _id = MAX('Table'[ID])
     var _id_value1 = CALCULATE([Protential Value1] , ALL('Table'[SubID]))
     var _id_value2 = CALCULATE([Revennue Value1] , ALL('Table'[SubID]))
     return
     IF(_id_value1 <> BLANK() && _id_value2 <> BLANK() ,1,0)
    

    (3)Then we put this measure on the "Filter on this visual" and cofigure it and we will meet your need:

     

    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

5 Replies

  • Hi moconnor1980 ,

     

    It is very simple.

    1. Click on the table.

    2. Go the filters tsb which is next to the visualisation pane.

    3. In that select Total Rev Measure is not equals to blank. 

     

    Regards,

    Nikhil Chenna

     

     

    Appreciate with a Kudos!! (Click the Thumbs Up Button)
    Did I answer your question? Mark my post as a solution!

  • Thank you Nikhill,

     

    However, when I've selected this, it still showing the same result:

     

    • NikhilChenna's avatar
      NikhilChenna
      Skilled Sharer

      hi moconnor1980 ,

       

      In the filter you have to select the option "is blank" and not "is not blank".

       

      Regards,

      Nikhil Chenna

       

      Appreciate with a Kudos!! (Click the Thumbs Up Button)
      Did I answer your question? Mark my post as a solution!

      • moconnor1980's avatar
        moconnor1980
        New Member

        Hi Nikhil,

        Thanks but when selected this, it removes the values but leaves all the "[Total] Potential Revenue"

        Thanks again

  • Hi , moconnor1980 

    According to your description, you want to "show "ID' that has a value in Column "[Total] Potential Revenue" & hide anything that has data with "Total Rev Measure" as per the below image".Right?

    Here are the steps you can refer to :
    (1)This is my test data :

    In my test data , you need to keep the [ID]=2,3.

    (2)We can create a measure :

    Flag = 
     var _id = MAX('Table'[ID])
     var _id_value1 = CALCULATE([Protential Value1] , ALL('Table'[SubID]))
     var _id_value2 = CALCULATE([Revennue Value1] , ALL('Table'[SubID]))
     return
     IF(_id_value1 <> BLANK() && _id_value2 <> BLANK() ,1,0)
    

    (3)Then we put this measure on the "Filter on this visual" and cofigure it and we will meet your need:

     

    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