cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mo_Islam
Helper III
Helper III

Count of rows for current user only

Hi,

I have a helpdesk system and created the following dashboard. However, all the counts work based on filters for ALL users except for 'My Cases' which only works for me and nobody else.

The filter I have for My Cases is:

CountRows(Filter('Complaints Manager Archive',Lower(Case_x0020_Handler.Email) = Lower(varUser.Email))

 

varUser is assigned the users email onStart: Set(varUser, User())

 

Please can someone help me understand why this works for me but not for anybody else? To be clear, all other users are able to see the counts for everything else except for 'My Cases'.

 

Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Mo_Islam ,

 

strange we need not to use Office365Users.MyProfileV2() for this simple thing. However, this pulls down the performance badly so do as this:

App onStart property Set(varUser,Office365Users.MyProfileV2());
and then change the formulas as 

 

CountRows(Filter('Complaints Manager Archive',Trim(Lower(Case_x0020_Handler.Email)) = Lower(Trim(varUser.mail)))

 

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

6 REPLIES 6
KrishnaV
Super User III
Super User III

Hi @Mo_Islam,

 

I am assuming "complain Management Archive" is a list if not change the formula as this:

CountRows(Filter(SPListName,Lower(Case_x0020_Handler.Email) = Lower(varUser.Email)))

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

 


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Thank you for your prompt response. It is the name of my SP List. I actually managed to get this to work by using the following:

 

CountRows(Filter('Complaints Manager Archive',Trim(Lower(Case_x0020_Handler.Email)) = Lower(Trim(Office365Users.MyProfileV2().mail)))

 

I had to add the Office365Users Connector.

 

 

Hi @Mo_Islam ,

 

strange we need not to use Office365Users.MyProfileV2() for this simple thing. However, this pulls down the performance badly so do as this:

App onStart property Set(varUser,Office365Users.MyProfileV2());
and then change the formulas as 

 

CountRows(Filter('Complaints Manager Archive',Trim(Lower(Case_x0020_Handler.Email)) = Lower(Trim(varUser.mail)))

 

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

Hi @Mo_Islam,


Hey, if the issue is resolved please mark all the helpful replies as a solution so that others can make use of it.

 

I hope this resolved your issue if you see any challenge let me know I am always happy to help.

 

Regards,

Krishna
If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

@Mo_Islam ,

I was going to post here but realised that @KrishnaV has already answered and it is impolite to post while another forum contributor has the matter under control and is answering promptly.

Hi, yes I couldn't understand why it would not work either so this way seems to be the only working option with the O365 connector.

 

Thank you.

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (47,824)