Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

How do I calculate how many open items I have to graph over time?

How do I calculate how many open items I have to graph over time?

 

The calculation would need to be able to determine how many items had been created so far (using a Submission Date) but then remove any items that had been closed or canceled so far (using Closed Date and Cancelled Date).

 

It's easy to calculate what it is now, but I don't know how to write it so that it's can be applied over time.

 

Help!

 

Data example.png

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I am not sure whether the below scenario is what you are thinking about.

Please kindly check the below picture and the DAX measure.

Date table and Data table are connected via three connections and all are inactive.

The DAX measure can be altered based on where the blank dates are in the DATA table.

The Pbix file link is down below.

 

items in progress =
CALCULATE (
     COUNTROWS ( data ),
     FILTER (
     VALUES ( data[SubmissionDate] ),
          data[SubmissionDate] <= MAX ( dates[date] )
     ),
     FILTER ( VALUES ( data[ClosedDate] ), data[ClosedDate] > MIN ( dates[date] ) )
)
+    CALCULATE (
     COUNTROWS ( data ),
     FILTER (
          VALUES ( data[SubmissionDate] ),
          data[SubmissionDate] <= MAX ( dates[date] )
      ),
      FILTER (
          VALUES ( data[cancelledDate] ),
          data[cancelledDate] > MIN ( dates[date] )
     )
  )

 

Picture1.png

 

https://www.dropbox.com/s/mtxna8xj66x8ciq/malorian%202021%200323.pbix?dl=0 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I am not sure whether the below scenario is what you are thinking about.

Please kindly check the below picture and the DAX measure.

Date table and Data table are connected via three connections and all are inactive.

The DAX measure can be altered based on where the blank dates are in the DATA table.

The Pbix file link is down below.

 

items in progress =
CALCULATE (
     COUNTROWS ( data ),
     FILTER (
     VALUES ( data[SubmissionDate] ),
          data[SubmissionDate] <= MAX ( dates[date] )
     ),
     FILTER ( VALUES ( data[ClosedDate] ), data[ClosedDate] > MIN ( dates[date] ) )
)
+    CALCULATE (
     COUNTROWS ( data ),
     FILTER (
          VALUES ( data[SubmissionDate] ),
          data[SubmissionDate] <= MAX ( dates[date] )
      ),
      FILTER (
          VALUES ( data[cancelledDate] ),
          data[cancelledDate] > MIN ( dates[date] )
     )
  )

 

Picture1.png

 

https://www.dropbox.com/s/mtxna8xj66x8ciq/malorian%202021%200323.pbix?dl=0 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
negi007
Community Champion
Community Champion

@Anonymous pl. share your sample dataset so that appropriate result can be provided to you.




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

I have added it

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors