cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ramole
Power Participant
Power Participant

check due date

Hi 

 

I am trying to show due date on a label example if the items is due today show a label and also i would like to add the the onces overdue also, at moment i use this formula but i get deligations on this code, is there a way i can avoid the deligations please also add overdue items as well 

 

 

"You have  "&
CountIf(
   'Check Management',
    IsToday('Date due') ,Status.Value="Open"
)&
"  checks due today"

 

 

Capturecount if .JPG

 

Thank you
If this post helps, then please consider Accept it as the solution to help the others and consider giving it a "Thumbs Up."
1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Ramole,

The CountIf() works when the conditions meet, so as the CountRows() combining with the Filter().

Not sure how you identify the past due's items, if you identify it based on the IsToday(), you could try as below:

"You have  "&
With(
    {
        ds: Filter(
            'Check Management',
            'Date due'< Today() ,Status.Value="Closed" // Assume that the conditions here to identify past due's items
                   )
    },
    CountRows(ds)
)&
"past due's items"

Does this solution could not solve the problem you mentioned in your subject?

If it does, please mark it as an answer.

Regards,

Qi

Best Regards,
Qi

View solution in original post

4 REPLIES 4
v-qiaqi-msft
Community Support
Community Support

Hi @Ramole,

Do you want to get count number from a delegateable formula?

Could you please share a bit more about the scenario?

I think you could use the With() function.

"You have  "&
With(
    {
        ds: Filter(
            'Check Management',
            IsToday('Date due') ,Status.Value="Open"
                   )
    },
    CountRows(ds)
)&
"  checks due today"

vqiaqimsft_0-1624584530272.png

Regards,

Qi

Best Regards,
Qi

Hi @v-qiaqi-msft 

 

Example the label should show me today’s due item and if is possible to show me past due’s items 

 

 

 

Thank you
If this post helps, then please consider Accept it as the solution to help the others and consider giving it a "Thumbs Up."

Hi @Ramole,

The CountIf() works when the conditions meet, so as the CountRows() combining with the Filter().

Not sure how you identify the past due's items, if you identify it based on the IsToday(), you could try as below:

"You have  "&
With(
    {
        ds: Filter(
            'Check Management',
            'Date due'< Today() ,Status.Value="Closed" // Assume that the conditions here to identify past due's items
                   )
    },
    CountRows(ds)
)&
"past due's items"

Does this solution could not solve the problem you mentioned in your subject?

If it does, please mark it as an answer.

Regards,

Qi

Best Regards,
Qi

View solution in original post

@v-qiaqi-msft 

Thank you
If this post helps, then please consider Accept it as the solution to help the others and consider giving it a "Thumbs Up."

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (1,998)