web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Overcoming calculated ...
Power Automate
Suggested Answer

Overcoming calculated column IF statement limitations

(1) ShareShare
ReportReport
Posted on by 4
A SharePoint List is the data source.
 
I have 126 tasks in a choice column allowing for only 1 selection. The user won't know the L5 process (25 choices) and also know the L4 work group (5 choices) related to the task they selected. Tasks  > L5 > L4 (not use the greater than but showing the flow of information)
 
I would like to use calculated columns from the task to assign the L5 process and another calculated column to assign the L4 work group based on the L5.
 
The problem is calculated columns have limited IF statements for the 126 tasks. 
 
Can and how would I use power automate to choose from the 25 L5 processes based on 1 of the 126 task options? I would most likely just have this flow run manually.
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Hi,

    Is the back end Dataverse or SharePoint or other? What is the front end?
     
    From a power automate perspective, you could easily pass in the selection from the 126 Tasks, then first have it do the IF to pick the L5 easy in a compose. Oh its going to be long... but possible.
     
    Then after 5 is picked, have another to pick 4. 
     
    Then you could pass them back to a Canvas App if its that, or depending on how its called.. 
     
    You could also have a Flow that is triggered when the user selects and saves the option from 126.
    Then have it select the 5 and 4 and save them. It would depend on if you want them to see in real time what is 5 and 4.
     
    So either of those works but again, you didn't say the UI or how its happening.
     
     
  • CU21022120-0 Profile Picture
    4 on at
    The data is coming from a sharepoint list.
     
    I have updated the post to indicate the data source.
     
    Best regards,
     
    Jeremy
  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at
    If I understand correctly, you don't need to use if statements at all.
    Just use the modulo function on the task selection index.
     
    If you have a list like this:
    [
            {
                "No": 0,
                "Task": "Task 0 0  "
            },
            {
                "No": 1,
                "Task": "Task 0 1  "
            },
            {
                "No": 2,
                "Task": "Task 0 2  "
            },
            {
                "No": 3,
                "Task": "Task 0 3  "
            },
            {
                "No": 4,
                "Task": "Task 0 4  "
            },
            {
                "No": 5,
                "Task": "Task 1 0  "
            },
            {
                "No": 6,
                "Task": "Task 1 1  "
            },
            {
                "No": 7,
                "Task": "Task 1 2  "
            },
    	... etc
    ]
    For a selected task number n, you can calculate L5 and L4 as follows:
    L5 = n /  5
    L4 = n mod 5
     
  • CU21022120-0 Profile Picture
    4 on at
    How would use the modulo function on the task selection index? You have a guide?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard