我有两个相互依赖的列,一个是Microsoft流中的计算列。我喜欢根据第一列的条件更改货币符号。
|Id |Japan |Installment |
| 1 | Yes | Fee will be billed in 2 equal installments of ¥6873750 on 1-Apr-2020, 1-Oct-2020 |
| 2 | No | Fee will be billed in 2 equal installments of $6873750 on 1-Apr-2020, 1-Oct2020 |
我的分期付款栏是一个计算的栏,按照我目前的逻辑,无论日本是是还是否,它都只加一个美元符号,但是对于将来日本栏为“是”的情况,我希望将货币转换为日元(¥) 。这是逻辑
=IF([Number of Installments]>="2","Fee will be billed in "&[Number of Installments]&" equal installments of "&"$"&ROUNDUP([Installment Value],2)&" on "&TEXT([Installment 1],"d-mmm-yyyy")&", "&TEXT([Installment 2],"d-mmm-yyyy")
您可以将SharePoint Calculated列更改为:
=IF([Number of Installments]>="2","Fee will be billed in "&[Number of Installments]&" equal installments of "& IF([Japan],"¥","$") & ROUNDUP([Installment Value],2)&" on "&TEXT([Installment 1],"d-mmm-yyyy")&", "&TEXT([Installment 2],"d-mmm-yyyy")
您在文本之间添加&IF([Japan],“¥”,“ $”)&。
可以在有条件的操作中基于“ Japan”列在Power Automate(MS Flow)中应用相同的逻辑