最大功能 [英] Max function

查看:71
本文介绍了最大功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


我必须在3轮会议期间计算最高回扣百分比。回扣几乎每一轮都有所不同(可以更高,可以更低)


我想知道如何在不显示其他较低值的情况下计算最高回扣。


例如

第1轮第2轮第3轮

产品1:0,05 0,03 0,07

产品2:0,02 0,03 0,01

在这种情况下,结果(使用查询)应该是:


产品1:0,07

产品2:0,03

Dear all,

I have to calculate the highest rebate percentage during 3 meeting round. The rebates differ almost every round (can be higher, can be lower)

I want to know how I can calculate the highest rebate without showing the other lower values.

E.g.
Round 1 Round 2 Round 3
Product 1: 0,05 0,03 0,07
Product 2: 0,02 0,03 0,01

In this case the outcome (by use of query) should be:

Product 1: 0,07
Product 2: 0,03

推荐答案


亲爱的所有,


我必须在3轮会议期间计算最高回扣百分比。回扣几乎每一轮都有所不同(可以更高,可以更低)


我想知道如何在不显示其他较低值的情况下计算最高回扣。


例如

第1轮第2轮第3轮

产品1:0,05 0,03 0,07

产品2:0,02 0,03 0,01

在这种情况下,结果(使用查询)应该是:


产品1:0,07

产品2:0,03
Dear all,

I have to calculate the highest rebate percentage during 3 meeting round. The rebates differ almost every round (can be higher, can be lower)

I want to know how I can calculate the highest rebate without showing the other lower values.

E.g.
Round 1 Round 2 Round 3
Product 1: 0,05 0,03 0,07
Product 2: 0,02 0,03 0,01

In this case the outcome (by use of query) should be:

Product 1: 0,07
Product 2: 0,03



几个问题

如果两个回合你有什么结果可以在结果中记录这个结果吗?

是否会进行轮回?


如果只有3您可以使用嵌套的IIF语句在查询中获取结果。

A couple of questions
If two rounds have the same result for the rebate do you need to record this in the result?
Are there going to be move rounds?

If there are only 3 you could use a nested IIF statement to get the result in a Query.

展开 | 选择 | Wrap | 行号


多个折扣是否相同无关紧要。只要获得最高回扣。 3是最大轮数。


我使用了你的公式,但它给出了一个错误:


" 表达你的输入有一个无效的(。)点或!运算符或无效括号。


我有英文版本,但即使更改逗号(点)逗号(;)也不起作用。


我也应该把公式放在一个新的字段中(在查询中)或者我可以把它作为其中一个回扣级别的标准。


这是我查询的sql

It doesn''t matter if mutiple rebates are the same. As long the highest rebate is taken. And 3 is the maximum rounds.

I used your formula, but it gives an error:

"The expression your entered has an invalid (.) dot or ! operator or invalid parentheses."

I have the english version, but even changing comma''s for dot comma (;) does not work.

Also should I put the formula is a new field (in the query) or can I put this as a criteria of one of the rebate levels.

This is the sql of my query

展开 | 选择 | Wrap | 行号


尝试: -
Try :-
展开 | 选择 | Wrap | 行号


这篇关于最大功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆