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 / error on equal sign
Power Apps
Unanswered

error on equal sign

(0) ShareShare
ReportReport
Posted on by 6

Hi, i wanted to filter by column status = completed, but my syntax having an error on equal sign. tq

 

sbrenazmzri_1-1696474586284.png

 

 


If(
IsBlank(varSortColumn)||IsBlank(varSortDirection),
Filter(
ReportDetailsTable,
StartsWith(ID,SearchInputBox.Text) && 'Created By'.Email = VarLoggedInUser && Status = "Completed"
),
Sort(
Filter(
ReportDetailsTable,
StartsWith(ID,SearchInputBox.Text) && 'Created By'.Email = VarLoggedInUser && Status = "Completed"
),
Switch(
varSortColumn,
"ID",
ID
),
varSortDirection
)
)

Categories:
  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @sbrenazmzri,

     

    I am assuming your status column is of type choice and you are wanting to filter the status using a dropdown control?

     

    Please try:

    'Status Option' = Dropdown1.Selected.Value

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • sbrenazmzri Profile Picture
    6 on at

    actually i didnt set status option as dropdown, im trying to get the value 'completed' directly from the list.

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @sbrenazmzri,

     

    Can you please provide what column type Status is. Is it of type choice, text?

  • sbrenazmzri Profile Picture
    6 on at

    yes.. the column type for status is choice, sorry i didnt say it earlier 

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @sbrenazmzri,

     

    Try putting:

    Text(Status) = "Completed"

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    @sbrenazmzri ,

    You actually need Status.Value, but the main reason for my post is to suggest a better structure which allows for any sort field

    With(
     {
     _Data:
     Filter(
     ReportDetailsTable,
     StartsWith(
     ID,
     SearchInputBox.Text
     ) && 
     'Created By'.Email = VarLoggedInUser && 
     Status.Value = "Completed"
     )
     },
     If(
     IsBlank(varSortColumn) || IsBlank(varSortDirection),
     _Data,
     SortByColumns(
     _Data,
     varSortColumn,
     varSortDirection
     )
     )
    )
  • Srirangamnipun Profile Picture
    30 on at

    Hi @sbrenazmzri ,

     

    If it is choice column in sharepoint, then use status.Value="Completed"

    Thank You. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard