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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Dn_wemn
Helper II
Helper II

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.