Forum Discussion

M_SBS_6's avatar
M_SBS_6
Helper V
2 years ago

Manipulate the Total

Hi,
I am trying to create a matrix which has a distinct count.

My data I'm using for this example is this:

AppID.   AppStatus.         AppGroup
22.               Existing.             House
22.               Existing.             Flat 22.               Existing.             Flat

 

So, I have 3 records, 1 distict AppID.

My Row = AppID
Column = AppGroup
Value = count distinct AppID

This is what is returned below.

AppType.   House.     Flat.   Total
Rem.               1.            1.         1

Everything is correct based on the logic however, I'd like the Total to show as a 2 instead of a 1.

AppType.   House.     Flat.   Total
Rem.               1.            1.         2

Is there anyway of doing this please, maybe like a grouping perhaps?

1 Reply

  • Daniel29195's avatar
    Daniel29195
    Community Champion

    M_SBS_6 

     

    use sumx iterator.

    iterate over the column in the visual, 

    and for the expression, use calculate ( distinctcount( the col you are counting )  ) 

     

    let me know if this helps .

     

     

    If my answer helped sort things out for you, i would appreciate a thumbs up πŸ‘ and mark it as the solution βœ…
    It makes a difference and might help someone else too. Thanks for spreading the good vibes! πŸ€