Forum Discussion

jpodBerlin's avatar
jpodBerlin
Advocate II
9 years ago
Solved

Interactive filtering treemap

Hello,

my first post.

 

I am using two charts. One bar and one treemap chart. When filtering interactively by pressing one bar in the chart, the treemap's content adopts to this action.

 

The treemaps ractangles keep the same size (without filtering) and the filtered content is shown as part of the original size.

Is it possible, to let the treemap fully adopt to the filtered data? No transparent part in treemap, but completely filled with the now selected/filtered data?

Thanks in advance

 

 

Two screenshots might be helpful:

 

 

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi jpodBerlin

     

    As far as I'm aware, you can't do this per se.

     

    You can try with this measure: and plot it in the tree map: 

     

    Sum Value = IF(HASONEFILTER(Table[Category]);CALCULATE(SUM(Table[Value]);ALLEXCEPT(Table;Table[Category]);SUM(Table[Value]))

     

    Let me know how it goes.

     

    Best,

    Martin

    • jpodBerlin's avatar
      jpodBerlin
      Advocate II

      Hello Martin,

       

      thanks for the swift answer. I've tested it.

      However, it shows an error (I try to translate in English). I hope I've transmitted the formula correctly.

       

      "the function of type 'SUM' is used in a TRUE/FALSE expression, which serves as table filter expression. this is not allowed'

       

      But the answer, it is generally out of box possible is helpful.

       

      Matthias

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        jpodBerlin

         

        I messed up a paranthesis. Try this:

         

        Sum Value = IF(HASONEFILTER(Table[Category]);CALCULATE(SUM(Table[Value]);ALLEXCEPT(Table;Table[Category]));SUM(Table[Value]))

         

        Let me know how it goes.