cancel
Showing results for
Did you mean:
Frequent Visitor

## Match between two values

Hello all,

I need your help for a moment. In my app I calculate a turnover via price and quantity. For this turnover I want to read an ABC indicator in a table (maintained in sharepoint).
The table looks like this:

ABC  Turnover
A      10000
B      5000
C     1000

The turnover is in each case the lowest limit for ABC. From this the following results are derived:

Product1 Turnover 12000 is A
Product2 Turnover 9000 is B
Product2 turnover 5001 is B

Do you have an idea how I can implement this?

2 REPLIES 2
Super User

@Nick001 if you are showing the data in a gallery and ABC is an additional label, please try the following code:

``````Default of the ABC label:

If(Value(ThisItem.Turnover) <= 1000, "C", If(Value(ThisItem.Turnover) <= 5000, "B", "C"))``````

Alternatively you could also use an AddColumns() function with the same logic.

I hope this helps!

Frequent Visitor

thanks for the quick help, I have chosen the example too simple, in reality the table with abc is much larger. I have per commodity group an ABC distribution with sublevels.

Therefore the question if there is a kind of sverweis analog Excel with resultvector.

Table:

ABC Cluster / Productgroup / Year / Takeover

The cluster of the respective article is to be searched within the product group and the year.

Announcements

#### Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

#### Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!

#### Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!