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
Dn_wemn
Helper I
Helper I

Count by another column which has discount value greater than 1

Hi,

I'd like to count the products which have more than one brand.

So in this example, the measure count should be 4. It should count the products C, D, E and F. These products have multiple distinct brands.

 

Dn_wemn_0-1710498420800.png

 

Product  Brand RandomColumn
Adsk
Adsj
Bng
Cmut
Co8r
Cgw
Dkle
Dzzzr
Eredt
Evfz
Emnnu
Fawhb
Flhfc
Fkjkx
Fmks
GAAe
GAAu

 

Thank you.

1 ACCEPTED SOLUTION
JamesFR06
Resolver IV
Resolver IV

Mesure 5 =
VAR base =
COUNTROWS (
FILTER (
SUMMARIZE (
Brand,
Brand[Product ],
"Brand",
CALCULATE (
DISTINCTCOUNT ( Brand[ Brand] ),
ALLEXCEPT ( Brand, Brand[Product ] )
)
),
[Brand] > 1
)
)
RETURN
base

View solution in original post

4 REPLIES 4
JamesFR06
Resolver IV
Resolver IV

Mesure 5 =
VAR base =
COUNTROWS (
FILTER (
SUMMARIZE (
Brand,
Brand[Product ],
"Brand",
CALCULATE (
DISTINCTCOUNT ( Brand[ Brand] ),
ALLEXCEPT ( Brand, Brand[Product ] )
)
),
[Brand] > 1
)
)
RETURN
base

Thanks a lot 🙂

JamesFR06
Resolver IV
Resolver IV

Hi,

 

NbBrand = CALCULATE(DISTINCTCOUNT(Brand[ Brand]),ALLEXCEPT(Brand,Brand[Product ]))
JamesFR06_0-1710499936102.png

 

Hi,

I'd like to count the products which have more than one brand, so the brands should not be counted.

The expected total result should be 4.

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.