Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello all,
I am currently trying to develop a report that shows how many open sales order there were for a given day/period.
As visualization I would like to use a simple bar chart, which shows how many open sales orders there were for the respective day / week.
The structure of the data is as follows:
| Sales Order | Value | Status | Date |
| 1001 | 50 | 1 | 01.01.2022 |
| 1001 | 60 | 6 | 02.01.2022 |
| 1002 | 60 | 6 | 03.01.2022 |
Open sales requisitions have a status < 6.
How can I find out how many orders had a status <6 for the respective period?
Solved! Go to Solution.
The following code is more simple
Open Sales =
CALCULATE (
DISTINCTCOUNT ( Table[Sales] ),
REMOVEFILTERS ( 'Calendar' ),
Table[Date] <= MAX ( 'Calendar'[Date] ),
Table[Status] < 6
)
The following code is more simple
Open Sales =
CALCULATE (
DISTINCTCOUNT ( Table[Sales] ),
REMOVEFILTERS ( 'Calendar' ),
Table[Date] <= MAX ( 'Calendar'[Date] ),
Table[Status] < 6
)
Hello again
In case you are using the date column from the same table in the visual then you can try
Open Sales =
CALCULATE ( DISTINCTCOUNT ( Table[Sales] ), FILTER ( ALL ( Table ), Table[Date] <= MAX(Table[Date]) && Table [Status] < 6 ))
Then please try
Open Sales =
CALCULATE ( DISTINCTCOUNT ( Table[Sales] ), REMOVEFILTERS('Calendar'), FILTER ( ALL ( Table ), Table[Date] <= MAX('Calendar'[Date]) && Table [Status] < 6 ))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 12 | |
| 11 |