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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 ))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |