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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a (for me) complex DAX expression showing the average hours taken to move a work item out of 'new' status.
I want to have a bar chart that shows the number of work orders that are above 48 hours, and the number that are below (stacked to 100%)
How can I achieve this?
Assuming you have a fact table named 'Fact Orders', a field named "Order Number" and the measure [
Average Hours]:
Assuming you have a fact table named 'Fact Orders', a field named "Order Number" and the measure [
Average Hours]:
Orders over 48 Hours =
COUNTROWS(
FILTER(VALUES('Fact Orders'[Order Number]),
[Average Hours]>48
)
)
Orders Within 48 Hours =
COUNTROWS(
FILTER(VALUES('Fact Orders'[Order Number]),
[Average Hours]<=48
)
)
Place those two in a 100% stacked bar chart and you should be good to go.
Place those two in a 100% stacked bar chart and you should be good to go.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |