Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powerbi powerquery-IF语句引用另一个表_Powerbi_Powerquery_M - Fatal编程技术网

Powerbi powerquery-IF语句引用另一个表

Powerbi powerquery-IF语句引用另一个表,powerbi,powerquery,m,Powerbi,Powerquery,M,我想在Power BI上引用另一个表的Power查询中使用IF语句添加一个YES/NO列。以下是我想要实现的目标: 提前谢谢 if [id] = table2[id] and [group] = table2[group] and [start_time] >= table2[start_time] and [start_time] <= table2[end_time] then "yes" else "no" 如果[id]=table2[id]和[group]=table2[g

我想在Power BI上引用另一个表的Power查询中使用
IF
语句添加一个YES/NO列。以下是我想要实现的目标:

提前谢谢

if [id] = table2[id] and [group] = table2[group] and [start_time] >= table2[start_time] and [start_time] <= table2[end_time] then "yes" else "no"

如果[id]=table2[id]和[group]=table2[group]和[start_time]>=table2[start_time]和[start_time]欢迎!你能分享你到目前为止所做的尝试以及你在做这件事时遇到的问题吗?我在Power Query中添加了一个自定义列,但我无法根据我在共享代码中输入的内容将table2数据添加到公式中。也许有另一种方法可以从另一个表中查找数据并将其添加到公式中?或者,您可以在加载到数据模型后将其作为计算列添加。DAX绝对有能力做到这一点。