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