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 / lookup tax rate and ge...
Power Apps
Answered

lookup tax rate and getting the total

(0) ShareShare
ReportReport
Posted on by 219

Hi all, 

 

I am using the formula below to look up the tax rate based on the zip from another datafield but I am having a hard time adding it to the subtotal datafield (DataCardValue16_1) in order to get the total. 

 

If(Form1.Mode=FormMode.New,LookUp(TaxRates,ZipCode=DataCardValue22_1.Text,EstimatedCombinedRate),Parent.Default)

 

Anyone know why? 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ntt56k4 :

    Do you want to get the sum of the EstimatedCombinedRate fields of all records in the table "TaxRates" whose ZipCode values are equal to DataCardValue22_1.Text?

    If so ,the formula should be:

    If(
     Form1.Mode=FormMode.New,
     Sum
     Filter(
     TaxRates,
     ZipCode=DataCardValue22_1.Text),
     EstimatedCombinedRate),
     Parent.Default
    )

    Best Regards,

    Bof

  • ntt56k4 Profile Picture
    219 on at

    Unfortunately no. I have two data fields, one is the subtotal and the other one is for tax amount. I used the formula above to look up the tax rate but I want to take it further by multiplying the tax rate to the subtotal field so I can get the total of the tax amount. 

     

    Also, I used the formula below to generate the tax rates but the data field is showing decimal value rather than percentage. I can't seem to come up with a correct formula to display percentage instead. 

     

    LookUp(TaxRates,ZipCode=DataCardValue22_1.Text,EstimatedCombinedRate)

     

    ntt56k4_0-1616563408723.png

     

     

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ntt56k4 :

    Do you want to show "10.2%" instead of "0.102"?

    If so,please try:

    LookUp(TaxRates,ZipCode=DataCardValue22_1.Text,EstimatedCombinedRate)*100 & "%"

    Best Regards,

    Bof

  • ntt56k4 Profile Picture
    219 on at

    thanks that works

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard