Forum Discussion

arvindarvind24's avatar
3 years ago

Count from Related

Hi,

  Need your help on to get count from other table as mentioned in below output.

 

 

codeTotal EnrolledEnrolled in store(Count)Enrolled in storeTransacting in other store(Count)Transacting in other storeenrolled in other store & Transacting in this store(Count)enrolled in other store & Transacting in this store
142110001300012000
10541  12000  
Total3110002500012000

 

https://drive.google.com/file/d/1FIowMcs7APghvtnyzwypLgVwN1dA3ta6/view?usp=sharing 

 

@amitchauhan @bvanderwatt @ray_ux @tamerj1 @SpartaBI @v-chenyue-msft  @mangaus1111 

 

 

 

 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi arvindarvind24 ,

    Please have a try.

    Create measures.

    Measure = var _1=IF((MAX(Sales[admsite_code]) in VALUES(Customer[admsite_code])),1,0)
    var _2=
    IF(_1=1,MAX(Customer[mobile]),BLANK())
    return
    _1
    Measure 2 = SUMX(FILTER(ALL(Sales),Sales[admsite_code]=SELECTEDVALUE(Sales[admsite_code])&&MAX(Sales[admsite_code]) in VALUES(Customer[admsite_code])),MAX(Sales[netamt]))

    If it still does not help, please provide more details with your desired output.

     

    Best Regards

    Community Support Team _ Polly

     

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