The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Product | Brand | RandomColumn |
A | ds | k |
A | ds | j |
B | n | g |
C | mu | t |
C | o8 | r |
C | g | w |
D | kl | e |
D | zzz | r |
E | red | t |
E | vf | z |
E | mnn | u |
F | awh | b |
F | lhf | c |
F | kjk | x |
F | mk | s |
G | AA | e |
G | AA | u |
Thank you.
Solved! Go to Solution.
Mesure 5 =
VAR base =
COUNTROWS (
FILTER (
SUMMARIZE (
Brand,
Brand[Product ],
"Brand",
CALCULATE (
DISTINCTCOUNT ( Brand[ Brand] ),
ALLEXCEPT ( Brand, Brand[Product ] )
)
),
[Brand] > 1
)
)
RETURN
base
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 🙂
Hi,
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
95 | |
80 | |
62 | |
56 |
User | Count |
---|---|
252 | |
121 | |
112 | |
81 | |
70 |