热线电话:13121318867

登录
2020-07-27 阅读量: 1072
POWER BI 人生第一天(细碎)

image.png


image.png

(a as number) =>

let

源 = if a > 0 then "正数"

else if a=0 then "零"

else "负数"

in


image.png

image.png



思考题用自定义函数与判断语句,创建由三个参数构成的自定义函数,自定义函数用来选择做四则运算中的哪种运算,并返回计算结果。

提示:前两个参数用来参与四则运算,第三个参数用来判断做哪种类型的计算例:当第三个参数为1是做加法,为2时做减法,为3时做乘法,为4时做除法运算。除此之外的参数值时返回“参数错误”提示


(a as number, b as number, selcal as number) =>

let

源 = if selcal=1 then a+b

else if selcal=2 then a-b

else if selcal=3 then a*b

else if selcal=4 then a/b

else "参数错误"

in



51.4838
4
关注作者
收藏
评论(0)

发表评论

暂无数据