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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jibran
Helper II
Helper II

Count Formula filter by Customer ID

Hi,

I am running into looks like a basic formula problem.

Where I want to caculate total number of vehicles attached to customer against a specific product.

My tables structure is like 

Customer ID         Cusotomer Name                 Registration Number                    Product                           Total

1000020               ABC                                        123 XYZ                                        Breakdown I                   2

1000020               ABC                                        124 ABC                                        Breakdown I                   2

1000021               XYZ                                         356 GHI                                        Breakdown I                   1

1000022               AGH                                        789 DEF                                        Tyre                                2

1000022               AGH                                        111 ABC                                        Tyre                                2

 

I want to see the result as of total column.

 

Many Thanks

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@jibran

 

Try this

 

Total =
CALCULATE (
    COUNT ( TableName[Registration Number] ),
    ALLEXCEPT ( TableName, TableName[Customer Name] )
)

Regards
Zubair

Please try my custom visuals

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

@jibran

 

Try this

 

Total =
CALCULATE (
    COUNT ( TableName[Registration Number] ),
    ALLEXCEPT ( TableName, TableName[Customer Name] )
)

Regards
Zubair

Please try my custom visuals

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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