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 / the values being compa...
Power Apps
Answered

the values being compared have mismatched type

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All, I have created a Gallery and loaded the data from excel as table format The data is Table1 and layout has three values Body as AvailableHrs, Subtitle3 as Month and Title4 as Year and it is coming fine as expected. I have created a Texbox and using the below formula to populate hrs based on the current month but the values compared have mismatched type (Left is text and right is number) but the same formula is working fine in another apps Text(LookUp(Table1,Month=(Month(Now())),AvailableHrs)) But i have use the below formula then it is working fine. Please help Text(LookUp(Table1,Month="2",AvailableHrs))

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    Hi @Anonymous

     

    To fix a type mismatch error, you can use the Value function to convert a string to a number, or the Text function to convert a number to a string.

     

    Here's an example of how you would use these functions:

     

     

    Text(LookUp(Table1,Value(Month)=(Month(Now())),AvailableHrs)) 

    or...

     

    Text(LookUp(Table1,Month=Text(Month(Now())),AvailableHrs)) 

     

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thanks. It working

  • Fbelay Profile Picture
    17 on at

    HI,

     

    I have the same problem here but mine is slightly different.   I get the same message but I don't know how I would apply the value or text function .  The dtat a in this form is based off a sharepoint list.   

     

     Filter Function.jpg

     

     

  • timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    Hi @Fbelay

     

    Supposing that SubmissionStatusCount is a text column in SharePoint, I'd try the following formula....

     

    Filter('ID Theft Tracking', "SubmissionStatusCount" = "1")
  • Fbelay Profile Picture
    17 on at

    Thanks for replying.  The blue notification goes away but it won't filter my data.   In the sharepoint list, I made sure the column "SubmissionStatusCount" was a text field instead of a number.  

     

    I am not really understanding why the filter, sort, or sortbycolumns will not work.   Its weird.   I just want to filter my gallery to only show specific data. 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 538

#2
WarrenBelz Profile Picture

WarrenBelz 420 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard