Forum Discussion

orihait's avatar
orihait
Helper I
7 years ago

Using sumif equivalent in a matrix visualization

hi guys,

i've got a matrix visualization that calculates the sum of standing loans and approved loans by "fund".

it looks something like this and uses a very simple sum measure.

 

 

fund c is acutally a co investment by fund a and fund b so i'd like to refine the measure so that the output would ignore fund c and add 50% of it's balance to fund a and fund b.

the result should look like this : 

 

can anyone think of a method to achieve this output?

thanks!!!!.

 

 

4 Replies

  • Hi orihait , I would create the next calculated columns:

     

    fund ab = 
    var VarValue=Table1[status]
    return
    (LOOKUPVALUE(Table1[fund c];Table1[status];VarValue)/2)+Table1[fund a]
    fund bb = 
    var VarValue=Table1[status]
    return
    (LOOKUPVALUE(Table1[fund c];Table1[status];VarValue)/2)+Table1[fund b]

    You would get your data:

     

     

    Best Regards,
    Miguel

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

     

     

    • orihait's avatar
      orihait
      Helper I

      hi and thanks again for taking the time to help.

       

      is there any way i could do it without creating new collumns i.e by using the matrix's filter context?

      the raw data looks something like this

       

      and should look like this on the matrix :

      i figured i could use the visualization filter to edit fund c out and show only the ones i want.

       

      thanks again! i highly appreciate it!

       

       

      • ZunzunUOC's avatar
        ZunzunUOC
        Resolver III

        As far I know, you can create the matrix but not calculated like you need (fund a=fund a+ fund c/2 and fund b=fund b + fund c/2.

         

        You would need calculate to achieve this.