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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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