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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
William_Walk
Frequent Visitor

Continuous Count of ID based on the Submission and Approval Date

Hi 

 

I'm struggling with a problem regarding Contious counting of ID's. 

 

The ask is to continually count per month the ID's in the table based on if its been submitted but not approved.

e.g if it was submitted in january 2023 and approved in march 2023 we would count per month for jan, feb and march until its been approved. 

 

The aim is to show a trend in unapproved ID's over time.

 

The columns im using are the following:

  • ID
  • Submission Date
  • Approval Date 

I have tried the below dax code commands to solve this:

William_Walk_0-1716901136558.png

 

Any help is greatly appreciated 🙂 

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, 

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1716919569830.png

 

 

Jihwan_Kim_0-1716919551161.png

 

expected result measure: =
COUNTROWS (
    FILTER (
        milestone,
        milestone[submission_date] <= MAX ( 'calendar'[Date] )
            && milestone[approval_date] >= MIN ( 'calendar'[Date] )
    )
)

 


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.

Hi

 

This is brilliant, is it possible to exclude ID's that have been approved in the same month as well? e.g if they were submitted in january and approved in january then we wouldnt count the ID.

 

Thanks for the help on this 🙂

Hi,

Please provide your sample pbix file's link, and then I can try to look into your sample pbix file.

Thank you.


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.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.