Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi there,
I have data that looks similar to this:
Purchase Order Number: Vendor Name:
001 Vendor A
002 Vendor B
003 Vendor B
004 Vendor C
005 Vendor C
006 Vendor C
Each purchase order number is a distinct value, but a vendor can have multiple purchase orders. So with this data I am trying to find the average number of purchase orders per vendor. In this case, I would be looking for a DAX formula that would return the answer of 2, since the average count of POs that a vendor has would be 2. Any help is greatly appreciated.
Solved! Go to Solution.
Hi @Anonymous
Create measures
distinctount = CALCULATE(DISTINCTCOUNT('Table'[Purchase Order Number]),ALLEXCEPT('Table','Table'[Vendor Name]))
average = AVERAGEX(DISTINCT('Table'[Vendor Name]),[distinctount])
Hi @Anonymous
Create measures
distinctount = CALCULATE(DISTINCTCOUNT('Table'[Purchase Order Number]),ALLEXCEPT('Table','Table'[Vendor Name]))
average = AVERAGEX(DISTINCT('Table'[Vendor Name]),[distinctount])
If my understanding is correct, you can use the following formula
Eric Ji | Senior Business Intelligence Consultant
www.designmind.com
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |