March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I need to count part numbers that were sold on more than one time by item type. I have 2 tables and example data below. I need to count the number of invoices by part #, then count the number of part #'s that have more than 1 and break that out by item type.
STD = 2
EXPAN = 3
Solved! Go to Solution.
Hi @nschmidt
1. Create a 1-to-many relationship between 'Product'[Part#] and Sales[Part#]
2. Place 'Product'[Item type] in the rows of a table visual
3. Create this measure and place it in the visual
Measure =
COUNTROWS (
FILTER ( DISTINCT ( 'Product'[Part #] ), CALCULATE ( COUNTROWS ( Sales ) ) > 1 )
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @nschmidt
1. Create a 1-to-many relationship between 'Product'[Part#] and Sales[Part#]
2. Place 'Product'[Item type] in the rows of a table visual
3. Create this measure and place it in the visual
Measure =
COUNTROWS (
FILTER ( DISTINCT ( 'Product'[Part #] ), CALCULATE ( COUNTROWS ( Sales ) ) > 1 )
)
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
16 | |
15 | |
7 | |
7 |
User | Count |
---|---|
35 | |
31 | |
16 | |
16 | |
12 |