(Power BI) 将计算列转换为 Power Query

问题描述

这是我拥有的计算列代码,并希望将其转换为 Power Query。

Power BI calculated column

Unique Match Column = 
var consignee=CALculaTE(disTINCTCOUNTNOBLANK(Client[Consignee]),ALLEXCEPT(Client,Client[ConsolNumber]))
var consignor=CALculaTE(disTINCTCOUNTNOBLANK(Client[Consignor]),Client[ConsolNumber]))
var consignee1=CALculaTE(Max(Client[Consignee]),Client[ConsolNumber]))
var consignor1=CALculaTE(Max(Client[Consignor]),Client[ConsolNumber]))
var match=SWITCH(TRUE(),AND(consignor=1,consignee=1),consignee1,consignee=1,consignor=1,consignor1,AND(ISBLANK(consignor),consignee<>1),"BLANK",AND(ISBLANK(consignee),consignor<>1),"MIX")
return match

这是 pbix:https://ufile.io/q2pty4w9

希望大家能帮忙解决这个问题。

非常感谢并感谢您的关注。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)