Skip to main content

Notifications

Power Apps - Building 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")))

Categories:
  • CU05080816-2 Profile Picture
    CU05080816-2 26 on at
    Re: toglee value change

    It works, thank you 

  • Verified answer
    Re: toglee value change

    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
    CU05080816-2 26 on at
    Re: toglee value change

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

  • Verified answer
    Re: toglee value change

    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!

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard