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 / Highest Classification...
Power Apps
Answered

Highest Classification Score

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have made a AI model that classifies text, this classification is used further in a flow.

Sometimes a text gets 2 classifications. When this happens the step comes in a "for each " block.

 

Is it possible to only use the highest score as classification. By setting it as variable for example? 

Categories:
I have the same question (0)
  • Verified answer
    Antrod Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Using variables and conditions you should be able to achieve that. What you can do is store the highest confidence with the associated classification in an object and update it if current confidence value if higher that the stored value:

    Antrod_0-1641912796458.png

    Antrod_1-1641912826025.png

     

    Formulas I used in the condition action are:

    item()['confidence']

    variables('MaxConfidence')['confidence']

     

    Hope that helps.

     

    Thanks.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @AntrodThank you very much exactly what I meant.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard