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 / toglee value change
Power Apps
Answered

toglee value change

(0) ShareShare
ReportReport
Posted on by 26

how do i make it so it only adds 500 once, and not once every product?

 

(check pictures)

 

 

 

 

If(DataCardValue18.Value,(Text(Sum('handlevogn-album'.AllItems,('antall-input' * pris_x002d_eksl_x002d_mva + 500)),"[$-nb-NO]## ### kr", "nb-NO")),(Text(Sum('handlevogn-album'.AllItems,('antall-input' * pris_x002d_eksl_x002d_mva)),"[$-nb-NO]## ### kr", "nb-NO")))

2.PNG
1.PNG
3.PNG
Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    A small adjustment will do the trick Marius.

    Now you state:

    if toggle is true, Allitems( amount + price + 500), Allitems( amount + price). 

     

    Try this:

    Allitems( amount + price) + if( toggle is true, 500, 0)

     

    This will calculate the total first, and afterwards adds the 500 only if the toggle is turned on.

     

    I hope this helps!

     

  • CU05080816-2 Profile Picture
    26 on at

    Could you make my day, and write the code for me 🙂 

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Try this

    Text(Sum('handlevogn-album'.AllItems,('antall-input' * pris_x002d_eksl_x002d_mva))+ If(DataCardValue18.Value, 500, 0),"[$-nb-NO]## ### kr", "nb-NO")

  • CU05080816-2 Profile Picture
    26 on at

    It works, 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard