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 Apps
Unanswered

Switch calculation

(0) ShareShare
ReportReport
Posted on by 45

I have a switch function in which for the specific Value of CW it should make a calculation on a specific value of solved. How can I achieve that?

Switch(
 CW.Value, 1, Solved,
 CW.Value, 2, (Solved.Value(2)+Solved.Value(1)*6)/7
)
Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @TKEnes 

    Your use of Value(2) and Value(1) is not valid in PowerApps.  What is it that you are trying to achieve with those?

  • TKEnes Profile Picture
    45 on at

    Yes I know that this is not valid. I am trying to get the Value of the (in this case) second and first item of Solved. My question is: how do I get these specific Values?

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @TKEnes 

    Is Solved a table?  What is it?

  • TKEnes Profile Picture
    45 on at

    It is a column from a Sharepoint List.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @TKEnes 

    Okay, then you need to reference the Record and the Column you want.  

    Is the 2 and the 1 to denote the record number?  How are you identifying which record the Solved column should come from?

  • TKEnes Profile Picture
    45 on at

    I am sorry for the very late answer. Yes, the 2 and the 1 are to denote the record number.

    "How are you identifying which record the Solved column should come from?" - that is the problem/question I have. How can I identify them?

  • TKEnes Profile Picture
    45 on at

    Found the solution to it. Just needed the LookUp function 🙂

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 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard