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 / Calculated Field with ...
Power Apps
Unanswered

Calculated Field with a Yes/No Toggle Switch

(0) ShareShare
ReportReport
Posted on by 158

I have a temporary Collection where I want to calculate the result from 2 fields.

This first field has a numeric value.  The second filed is a Toggle (Dataverse Table is Yes/No).

If the Toggle is True(Yes), then the first field is multiplied by.75, otherwise it is just the first field.

This is what I have tried so far and am getting "This formula uses scope, which is not presently supported for evaluation. | Data type:number

 

If(ThisItem.LinePerDiemRate <> 0 && ThisItem.LineTravelDay = true, ThisItem.LinePerDiemRate * .75), ThisItem.LinePerDiemRate

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @billf24 ,

     

    Please make the following change in your code:

    If(
     ThisItem.LinePerDiemRate <> 0 && ThisItem.LineTravelDay = true, 
     Value(ThisItem.LinePerDiemRate) * 0.75, 
     Value(ThisItem.LinePerDiemRate)
    )

     

    Hope this helps

  • billf24 Profile Picture
    158 on at

    Thank you for the reply.  I am getting a 0 when I add the formula, but when running it and setting the toggle to true, the value does not change from 0.

    Anything else to look at?

     

    Also getting "This formula uses scope, which is not presently supported for evaluation."

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @billf24 ,

     

    I missed the value on the top.

    Value function converts text to numeric data for evaluation

    If(
     Value(ThisItem.LinePerDiemRate) <> 0 && ThisItem.LineTravelDay = true, 
     Value(ThisItem.LinePerDiemRate) * 0.75, 
     Value(ThisItem.LinePerDiemRate)
    )

     

    This will help

  • billf24 Profile Picture
    158 on at

    Thanks for that but still not working..  Should these fields be text instead of value?

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @billf24 ,

     

    Where are you using the formula? 

    can you send the screenshot of the location where you are trying to use this?

    Since syntax will change depending on usage

     

  • billf24 Profile Picture
    158 on at

    billf24_0-1687465119271.png

    The Column Per Diem Rate is LinePerDiemRate, Travel Day is LineTravelDay and the Reimbursement is LineReimbursement.  This is a Collection not currently being sent to the Dataverse Table.  This is being designed as a repeating row.

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard