Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Filter and Count two unrelated tables

(0) ShareShare
ReportReport
Posted on by 321

So, I have two tables:

Table1 - "Service Requests" with Columns SR#, Description, Priority

Table2 - "Details" with Columns Request#, Status(Completed, In-Progress, Open) 

In both tables SR# and Request# are same. So if anyone raise any service request than while working on that request he has to update the Table2 with the same SR# in Request# column.

Now, I want to count the total number for each Status based on matching SR# and Request#. So there are three Labels each for  status "Completed" , "In-Progress" and "Open", I wanna show the total count based on matching SR# and Request#

Highly appreciate if someone can help me out.

  • Ram Prakash Profile Picture
    5,166 Super User 2025 Season 1 on at
    Re: Filter and Count two unrelated tables

    Hello @ashokpershad,

     

    If Microsoft Said its bug, then we can wait unit Microsoft Responds.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • ashokpershad Profile Picture
    321 on at
    Re: Filter and Count two unrelated tables

    @rampprakash I can best explain if we could catch through shared screen. I hope its OK for you ? Else we can have it done once Microsoft resolve BUG..

    Thanks for your time.

  • Ram Prakash Profile Picture
    5,166 Super User 2025 Season 1 on at
    Re: Filter and Count two unrelated tables

    Hello @ashokpershad,

     

    Shall we have a Quick Sync Up?. Because need to understand what is the issue in Rollup else We will do the same in JS or Plugins.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • ashokpershad Profile Picture
    321 on at
    Re: Filter and Count two unrelated tables

    @rampprakash 

    @bipinshan 

    Thank you so much for your help and time.

    Creating Flow will help but it will increase my costing because it comes under paid subscription. Any how i tried a different way because rollup thing not working for me. If you guys can tell me exact formula in Rollup it will be of great help. Even this different way have some bug which i noticed in other apps of mine as well. I informed same to Microsoft and they agreed its a BUG. So now I have no other option but to wait till it get resolved.

  • Ram Prakash Profile Picture
    5,166 Super User 2025 Season 1 on at
    Re: Filter and Count two unrelated tables

    Hello @ashokpershad,

     

    Another Suggesstion,

     

    Create a Whole Number Field for Completed/In-Progress etc

     

    1. Create a Flow when a Details Record is created

    2. Use List Rows and Filter the Details Record Based on Request#

    3. Use length (Length(ListRows)) update this Length in the Parent Record

     

    Note:

     

    You need to have identification which Record is Parent.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • ashokpershad Profile Picture
    321 on at
    Re: Filter and Count two unrelated tables

    @bipinshan You are right there is no relationship thats wh y i mentioned in subject unrelated tables. 

    Actually i wanted to avoid creating relationship using lookup because it will create issue if i want to write Patch function for same. Anyways, since you guys are suggesting same let me try it out. will get back to you soon

  • Ram Prakash Profile Picture
    5,166 Super User 2025 Season 1 on at
    Re: Filter and Count two unrelated tables

    Hello @bipinshan,

     

    As per the Statement, i thought its a Lookup Reference. Between Table 1 and Table 2

     

    rampprakash_0-1641202493962.png

     

    As per @bipinshan  stated you can create a lookup and follow the video which i posted

  • Bipin D365 Profile Picture
    971 on at
    Re: Filter and Count two unrelated tables

    @rampprakash ,

     

    Rollup field will not work in this because there is not relationship exist between Service Request and Details. both are unrelated.

     

    Hi @ashokpershad ,

     

    I would request you to create a relationship between two entities first by creating a lookup field in Details entity. This way you can create rollup field to show the count.

     

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: https://xrmdynamicscrm.wordpress.com/

     

     

  • ashokpershad Profile Picture
    321 on at
    Re: Filter and Count two unrelated tables

    @rampprakash I tried that but it is of no help. I want to know the Formula I should use to do all these filtering, calculations etc.

  • Ram Prakash Profile Picture
    5,166 Super User 2025 Season 1 on at
    Re: Filter and Count two unrelated tables

    Hello @ashokpershad,

     

    Hope you are doing good. Create a Rollup Field in Service Requests table Then the Rollup Calculation should be Related Service Request(Details) --> Count(Details)

     

    You can find my YouTube video for Calculated and Rollup field based on your Requirement : https://www.youtube.com/watch?v=P-6OTlmRWw4&t=9s

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics