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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

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.