Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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 guys,
I've been trying to solve this issue for some hours but I'm getting nowhere.
Basically, I have two tables, one for ORDER and one for PROJECT. I'm trying to count how many orders on average there are per project. However, I need to filter out projects where the orders are less than 20.
So I've created a measure that only calculates the count of projects where the orders are more than 20:
However, I can't seem to create the measure that counts number of orders that exist WITHIN those projects. I feel like the logic is quite circular because I'm trying to filter a table based on conditons on itself. This is what I've tried, but I'm guessing I'm using the wrong logic.
Solved! Go to Solution.
You could get the average number of orders with
Avg orders > 20 =
AVERAGEX (
FILTER ( VALUES ( 'Project'[Project number] ), [count order id] > 20 ),
[count order id]
)
Thank you! It worked perfectly.
You could get the average number of orders with
Avg orders > 20 =
AVERAGEX (
FILTER ( VALUES ( 'Project'[Project number] ), [count order id] > 20 ),
[count order id]
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |