Forum Discussion
distinct count
Hello ,
I want to count how many parts with supplier more than 2 and supplier equal 1
| Part | Supplier |
| W0030508752R | A |
| W0030508752R | B |
| W0030509095H-V1 | A |
| W0030509095H-V1 | A |
| W0030509095H-V1 | B |
| W41013044 | C |
| W41013621 | C |
| W41017168 | C |
| W41017173 | C |
| W41018408 | C |
| W41018445 | C |
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 ?
6 Replies
- lbendlinSuper 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-Forum/ba-p/963216
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/1447523 - MSAYED26Helper II
Thanks for the advice,
Part Supplier W0030508752R A W0030508752R B W0030509095H-V1 A W0030509095H-V1 A W0030509095H-V1 B W41013044 C W41013621 C W41017168 C W41017173 C W41018408 C W41018445 C 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
- lbendlinSuper User
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- MSAYED26Helper II
Parts Posting Date Suppliers W8TC1806100C 05-01-2020 A W43002256AC 08-01-2020 B W63X54HL 08-01-2020 B W41018395 12-01-2020 E W43011994S 12-01-2020 E W43016101S 12-01-2020 E W91104433S 12-01-2020 E W43002256 14-01-2020 B W43002256AC 14-01-2020 B