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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
MSAYED26
Helper II
Helper II

distinct count

Hello ,

I want to count how many parts with supplier more than 2 and supplier equal 1

Part Supplier
W0030508752RA
W0030508752RB
W0030509095H-V1A
W0030509095H-V1A
W0030509095H-V1B
W41013044C
W41013621C
W41017168C
W41017173C
W41018408C
W41018445C

I have done this measure
 Count Supplier = CALCULATE(DISTINCTCOUNT('Table'[Supplier]),ALLEXCEPT('Table','Table'[Part]))
More than 2 = CALCULATE(DISTINCTCOUNT('Table'[Part]),FILTER(ALL('Table'),[Count Supplier]>=2))
Equal 1 = CALCULATE(DISTINCTCOUNT('Table'[Part]),FILTER(ALL('Table'),[Count Supplier]=1))
but the value is fixed with date . How can I make it change from date ?

MSAYED26_0-1692970783738.png

 

 

6 REPLIES 6
MSAYED26
Helper II
Helper II

Thanks for the advice,

Part Supplier
W0030508752RA
W0030508752RB
W0030509095H-V1A
W0030509095H-V1A
W0030509095H-V1B
W41013044C
W41013621C
W41017168C
W41017173C
W41018408C
W41018445C

I want to count how many parts with supplier more than 2 and supplier equal 1  and change with date

In this example I have the count  of parts that have more than or equal 2 supplier is 5 parts and the count of parts that have one supplier is 6 parts 

Your sample data does not include dates.  That means we cannot comment on the requirement 

 

I want to count how many parts with supplier more than 2 and supplier equal 1  and change with date

PartsPosting DateSuppliers
W8TC1806100C05-01-2020A
W43002256AC08-01-2020B
W63X54HL08-01-2020B
W4101839512-01-2020E
W43011994S12-01-2020E
W43016101S12-01-2020E
W91104433S12-01-2020E
W4300225614-01-2020B
W43002256AC14-01-2020B

your sample data is insufficient to cover your scenarios.

 

lbendlin_0-1693225112335.png

 

MaterialPosting DateSuppliers
W8TC1806100C05-01-2020A
W43002256AC08-01-2020B
W63X54HL08-01-2020B
W4101839512-01-2020E
W43011994S12-01-2020E
W43016101S12-01-2020E
W91104433S12-01-2020E
W4300225614-01-2020B
W43002256AC14-01-2020B
W4101839514-01-2020E
W43011994S14-01-2020E
W43016101S14-01-2020E
W91104433S14-01-2020E
W4101839518-01-2020E
W43011994S18-01-2020E
W43016101S18-01-2020E
W91104433S18-01-2020E
W430117AC3S20-01-2020D
W430117C3S20-01-2020D
W430117DC3S20-01-2020D
W430317AC3S20-01-2020D
W430317C3S20-01-2020D
W430317DC3S20-01-2020D
W430517C320-01-2020D
WC7S100X7520-01-2020D
WH7S100X7520-01-2020D
WH8S100X7520-01-2020D
W4300049320-01-2020G
W4300050520-01-2020G
W8TC1806100C21-01-2020A
W4101839521-01-2020E
W43011994S21-01-2020E
W43016101S21-01-2020E
W91104433S21-01-2020E
W4101839523-01-2020E
W43011994S23-01-2020E
W43016101S23-01-2020E
W91104433S23-01-2020E
W0030509095H25-01-2020B
W4101839526-01-2020E
W43011994S26-01-2020E
W43016101S26-01-2020E
W91104433S26-01-2020E
W4300049326-01-2020G
W0030509095H28-01-2020B
W63280Z12DNE28-01-2020B
W63X54HL28-01-2020B
W4300225630-01-2020B
W43002256AC30-01-2020B
W4300049330-01-2020G
W4300049303-02-2020G
W4300225604-02-2020B
W430117AC3S04-02-2020D
W430117C3S04-02-2020D
W430117DC3S04-02-2020D
W430317C3S04-02-2020D
W430317DC3S04-02-2020D
W4300049306-02-2020G
W4300049306-02-2020G
W0030508752R07-02-2020B
W63280Z07DNE07-02-2020B
W63280Z10DNE07-02-2020B
W4101839510-02-2020E
W43011994S10-02-2020E
W43016101S10-02-2020E
W91104433S10-02-2020E
41043465H10-02-2020H
W2018022710-02-2020H
W2144807210-02-2020H
W4100886210-02-2020H
W4101362110-02-2020H
W4101381410-02-2020H
W4101716810-02-2020H
W4101717310-02-2020H
W4101840810-02-2020H
W4101844510-02-2020H
W4101910410-02-2020H
W4102101610-02-2020H
W4102125510-02-2020H
W4102174110-02-2020H
W4102182910-02-2020H
W4102188110-02-2020H
W4102197610-02-2020H
W4102198010-02-2020H
W4102204910-02-2020H
W4102230010-02-2020H
W4102368510-02-2020H
W4102447610-02-2020H
W4102647310-02-2020H
W4102709310-02-2020H
W4103325410-02-2020H
W4103486910-02-2020H
W4103619710-02-2020H
W4103757110-02-2020H
W4103826510-02-2020H
W4103946010-02-2020H
W4104003110-02-2020H
W4104028310-02-2020H
W4104097910-02-2020H
W4104099410-02-2020H
W4104100510-02-2020H
W4104136710-02-2020H
W4104136910-02-2020H
W4104138010-02-2020H
W4104138110-02-2020H
W4104160810-02-2020H
W4104253310-02-2020H
W4104289310-02-2020H
W4104292710-02-2020H
W4104396210-02-2020H
W4104455010-02-2020H
W4104596710-02-2020H
W4104822110-02-2020H
W4104822210-02-2020H
W4300013410-02-2020H
W4300537810-02-2020H
W4300596310-02-2020H
W4300878310-02-2020H
W4301038110-02-2020H
W4301099310-02-2020H
W4301256910-02-2020H
W4301757510-02-2020H
W4302008010-02-2020H
W4302009110-02-2020H
W4302385210-02-2020H
W4302515510-02-2020H
W4600672610-02-2020H
W9031930210-02-2020H
W9046790310-02-2020H
W9120019310-02-2020H
W9140020410-02-2020H
W9140800410-02-2020H
W9140800810-02-2020H
W9160288710-02-2020H
W9160294810-02-2020H
W9225086910-02-2020H
W9241218810-02-2020H
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely. Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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