【问题标题】:How to convert the excel formula to Tableau. Excel formula has been created using conditional statement with logic operator如何将 Excel 公式转换为 Tableau。已使用带有逻辑运算符的条件语句创建 Excel 公式
【发布时间】:2021-09-17 08:52:34
【问题描述】:

我需要转换一个使用带有逻辑运算符的条件语句创建的 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"))

【问题讨论】:

    标签: tableau-desktop


    【解决方案1】:

    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多