如何将 excel 公式转换为 Tableau。 Excel 公式已使用带逻辑运算符的条件语句创建
How to convert the excel formula to Tableau. Excel formula has been created using conditional statement with logic operator
我需要转换使用带逻辑运算符的条件语句创建的 Excel 公式。我是 Tableau 的新手,无法使用下面提到的公式创建度量:
IF([p_category]="P Invoice","P Invoice",IF(AND([p_category]="Non-P Invoice",OR([P Required YN]="Y",OR([P Required YN]="Flat Y and N if weighted",[P Required YN]="Y if not intercompany"))),"Non-Accepted Non-P Invoice","Accepted Non-P Invoice"))
IF/ELSE statements不需要你是Tableau专家,你只需要抽出时间尝试一下即可。
公式应如下所示:
IF [p_category]='P Invoice'
THEN 'P Invoice'
ELSE (
IF [p_category]='Non-P Invoice' AND ([P Required YN]='Y' OR ([P Required YN]='Flat Y and N if weighted' OR [P Required YN]='Y if not intercompany'))
THEN 'Non-Accepted Non-P Invoice' ELSE 'Accepted Non-P Invoice' END
)
END
我需要转换使用带逻辑运算符的条件语句创建的 Excel 公式。我是 Tableau 的新手,无法使用下面提到的公式创建度量:
IF([p_category]="P Invoice","P Invoice",IF(AND([p_category]="Non-P Invoice",OR([P Required YN]="Y",OR([P Required YN]="Flat Y and N if weighted",[P Required YN]="Y if not intercompany"))),"Non-Accepted Non-P Invoice","Accepted Non-P Invoice"))
IF/ELSE statements不需要你是Tableau专家,你只需要抽出时间尝试一下即可。
公式应如下所示:
IF [p_category]='P Invoice'
THEN 'P Invoice'
ELSE (
IF [p_category]='Non-P Invoice' AND ([P Required YN]='Y' OR ([P Required YN]='Flat Y and N if weighted' OR [P Required YN]='Y if not intercompany'))
THEN 'Non-Accepted Non-P Invoice' ELSE 'Accepted Non-P Invoice' END
)
END