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 / how to combine of 2 se...
Power Apps
Answered

how to combine of 2 selected numbers column.

(0) ShareShare
ReportReport
Posted on by 313

thank you for reading this post.

i have a lineitems list that contain that contain Cost (number), Currency (Choices SGD/YEN/USD/MYR), ConvertedSGDAmount (numbers)

each items can have different cost and currency.
when my finance colleague process the claims i have 1 fill for them to key in the exchange rate and this exchange rate will * the Cost and become ConvertedSGD Amount.

in the report screen, the RedBox Cost will sum all cost be it YEN currency or USD.
How do i make it only calculate only SGD Cost and ConvertedSGDAmount?

the current formula is

 

"SGD$" & If(Sum(Filter(LineItems,ReportID.Id = SelectedReport.ID),Cost)>0,Text(Sum(Filter(LineItems,ReportID.Id = SelectedReport.ID),Cost),"[$-en-US]#,###.00"),"0.00")

 

 

WeiMingLeong_0-1662608218393.png

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @WeiMingLeong,

    Do you want to sum the cost only with SGD Cost?

     

    I think you should filter the records based on the Currency value, if the Currency value is SGD, sum the Cost with SGD currency selected:

    "SGD$" & If(Sum(Filter(LineItems,ReportID.Id = SelectedReport.ID),Cost)>0,Text(Sum(Filter(LineItems,ReportID.Id = SelectedReport.ID,Currency.Value="SDG"),Cost),"[$-en-US]#,###.00"),"0.00")

    To sum the ConvertedSGDAmount, you just need to replace the Cost with the ConvertedSGDAmount column name.

  • Wei Ming Leong Profile Picture
    313 on at

    Hi @v-qiaqi-msft ,
    Thank you for your reply.
    I want the report to show total amount of SGD and ConvertedSGD amount .
    in the item screen my Finance colleague will key in the exchange rate and the convertedSGD amount will auto generate.

    WeiMingLeong_0-1662619953547.png


    Then at the View report i want the ConvertedSGDrate and other items that is in SGD to sum together.
    For example this 2 red box sum together to become SGD$230 in the green box.

    WeiMingLeong_1-1662620202023.png

     



  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @WeiMingLeong,

    Okay, I got this.

     

    Currency(Choice type) Cost(Number type) ConvertedSGDrate(Number type) FinanceExchangeRate
    SDG 100 130 1.3
    SDG xxx 100 1.3

    I thought you have a choice column named 'Currency' including SGD/YEN/USD/MYR for options, and you would sum only the SDG selected in your Currency for the ConvertedSGDrate column.

    "SGD$" & Text(Sum(Filter(LineItems,ReportID.Id = SelectedReport.ID,Currency.Value="SDG"),Rating),"[$-en-US]#,###.00")

     

    Check the above saying and tell me if this is what you want.

  • Wei Ming Leong Profile Picture
    313 on at

    hi @v-qiaqi-msft ,

    there is still the choice column for the different currency.
    the formula you provided was able to work with what i want.
    the total sum that i need is be 130+245.44+92.72

    Currency(Choice type)Cost(Number type)ConvertedSGDrate(Number type)FinanceExchangeRate
    SGD130  
    Yen25000245.440.0098
    MYR30092.720.3090

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard