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.
Hello everybody!
I need to calculate the number of orders with a specific status.
The order table has the following structure:
Order | Status | Date (key) | Item (key) |
1 | 50 | 01.01.2019 | A |
This table is linked to the calendar table and to the item master (Item > Area).
Now I need the calculate the number of orders that have the status "50" regardless of the date.
The following function is not working:
Status = COUNTX(FILTER(ALL(Orders),Orders[Status]=16),Orders[Order])
I get the correct number of work orders but this result is displayed at every area in the item master>
It should be something like
Solved! Go to Solution.
Hi @joshua1990,
Cant you do something like (assuming the table has one row per order)
CALCULATE(
COUNTROWS( Orders ),
ALL( Calendar Table ),
Orders[Staus] = 50
)
Not sure if you wanted orders status to be 50 or 16 from your question but just replace accordingly.
Hope it helps
Kris
@joshua1990 , Try one of the two
Status = COUNTX(FILTER((Orders),Orders[Status]=16),Orders[Order])
Status = COUNTX(FILTER(allselected(Orders),Orders[Status]=16),Orders[Order])
Hi @joshua1990,
Cant you do something like (assuming the table has one row per order)
CALCULATE(
COUNTROWS( Orders ),
ALL( Calendar Table ),
Orders[Staus] = 50
)
Not sure if you wanted orders status to be 50 or 16 from your question but just replace accordingly.
Hope it helps
Kris
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 |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |