Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

need code

Hello Everyone,

          I have the "constant variable" as the main group in my table and then I have subgroups in my data set and each subgroup has multiple representatives to represent it in the market. I need to find out which representative is involved in more than 1 group and need to display those groups with the main group details and other details in the table.

 

 

 

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

     

     

    When select R1 need the below desired output

     

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      WHat do you mean by constant variable?

       

      DO you want to display only representative who are present in more than one group ?

       

      For group

      Customer with more than 1 group=Calculate(DistinctCount(Table[Group]),Allexcept(table[Customer])

       

      Customer with more than 1 Subgroup=Calculate(DistinctCount(Table[SubGroup]),Allexcept(table[Customer])

       

      And add this measure to visual level filter and set "IS greater than 1".

       

      Thanks & regards,
      Pravin Wattamwar
      www.linkedin.com/in/pravin-p-wattamwar

      If I resolve your problem Mark it as a solution and give kudos.

      • Anonymous's avatar
        Anonymous
        Not applicable
        Data set      
        Client listRetailer listSales Representative   
        AaR1 When select R1 on the slicer 
        BaR2 Output required
        CbR1 Client listRetailer listOverlapping efforts of Sales RepresentativeRetailer names
        DgR7 AaR2 on a
        EdR1 CbR5 on d and r
        FdR5 EdR7 on q,b, and g
        GbR1 Gb  
        HbR7 f  
        fR1 KE  
        JrR5     
        KER1     
        LqR7