web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter and Count two u...
Power Apps
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.

I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,699 Super User 2026 Season 1 on at

    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

  • ashokpershad Profile Picture
    321 on at

    @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.

  • Bipin D365 Profile Picture
    971 on at

    @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/

     

     

  • Ram Prakash Duraisamy Profile Picture
    5,699 Super User 2026 Season 1 on at

    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

  • ashokpershad Profile Picture
    321 on at

    @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 Duraisamy Profile Picture
    5,699 Super User 2026 Season 1 on at

    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

    @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 Duraisamy Profile Picture
    5,699 Super User 2026 Season 1 on at

    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

    @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 Duraisamy Profile Picture
    5,699 Super User 2026 Season 1 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard