Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
arvindarvind24
Helper II
Helper II

Count of customer enrolled in other store & Transacting in this store

Hi All,

   Need your help on getting Count of customer enrolled in other store & Transacting in this store,
Please find the attached link for the sample File.

codeTotal EnrolledEnrolled in store(Count)Enrolled in storemembers enrolled in other store & Transacting in this store(Count)members enrolled in other store & Transacting in this storeenrolled in other store & Transacting in this store(Count)enrolled in other store & Transacting in this store
10   13000  
142110001200013000
10541    12000
Total3110002500025000

 

 

OutPut.png

 

 

Link: https://drive.google.com/file/d/19crjTP6tSvXzSvvP8wCk6WoD9_ps7mdJ/view?usp=sharing

 

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

1 ACCEPTED SOLUTION
v-jialluo-msft
Community Support
Community Support

Hi @arvindarvind24 ,

 

Please follow these steps:

(1) Create a new measure

SALES =
CALCULATE (
    SUM ( Sales[netamt] ),
    FILTER (
        ALL ( 'Sales' ),
        RELATED ( 'Customer'[admsite_code] ) = MAX ( 'Site'[admsite_code] )
            && NOT ( [admsite_code] & [redmobilenumber] )
                IN SUMMARIZE (
                    INTERSECT (
                        SUMMARIZE (
                            'Customer',
                            [admsite_code],
                            [mobile],
                            "1", [admsite_code] & [mobile]
                        ),
                        SUMMARIZE (
                            'Sales',
                            [admsite_code],
                            [redmobilenumber],
                            "1", [admsite_code] & [redmobilenumber]
                        )
                    ),
                    [1]
                )
    )
)

 

(2)Final output

vjialluomsft_0-1668672063507.png

 

 

Best Regards,

Gallen Luo

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

View solution in original post

6 REPLIES 6
v-jialluo-msft
Community Support
Community Support

Hi @arvindarvind24 ,

 

Please follow these steps:

(1) Create a new measure

SALES =
CALCULATE (
    SUM ( Sales[netamt] ),
    FILTER (
        ALL ( 'Sales' ),
        RELATED ( 'Customer'[admsite_code] ) = MAX ( 'Site'[admsite_code] )
            && NOT ( [admsite_code] & [redmobilenumber] )
                IN SUMMARIZE (
                    INTERSECT (
                        SUMMARIZE (
                            'Customer',
                            [admsite_code],
                            [mobile],
                            "1", [admsite_code] & [mobile]
                        ),
                        SUMMARIZE (
                            'Sales',
                            [admsite_code],
                            [redmobilenumber],
                            "1", [admsite_code] & [redmobilenumber]
                        )
                    ),
                    [1]
                )
    )
)

 

(2)Final output

vjialluomsft_0-1668672063507.png

 

 

Best Regards,

Gallen Luo

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

Hi @v-jialluo-msft 

 Output is correct but how abt grand total is not corrent.

@v-jialluo-msft Thank you🙏

daXtreme
Solution Sage
Solution Sage

This is not clear. Please give a good example in 'slow motion.' It's really hard to understand how your table calculates, especially if one is new to this. Please always remember that you do know the model and data. We don't.

2022-11-17 13 12 52.png

Hi @daXtreme 

Thank you for your replay,The model which i have shared is CRM data,
where custome is created in A1 store but transation is done in A2 store.

Where i have calcuated Customer is created A1 and billing is happed in the same store and also
Customer is created in A3 and billing is done in A1 store.
but mot able to calcuate where customer is created in A1 and billing in other store.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.