简体   繁体   English

Power BI中的通用过滤

[英]Universal filtering in Power BI

My model has 2 columns: Source System and Target System and I am using the NetworkNavigator custom visual. 我的模型有2列:源系统和目标系统,我正在使用NetworkNavigator自定义视觉。 My goal is to search for a specific system and display all relationships to that system, regardless if it is a source or target in the relationship. 我的目标是搜索一个特定的系统并显示与该系统的所有关系,无论它是关系中的源还是目标。

Assume the following 2 records: Source=A Target=B, Source=B Target=C. 假定以下2条记录:源= A目标= B,源= B目标=C。 I would like to search for "B" and see both records (I am using the NetworkNavigator custom visual). 我想搜索“ B”并查看两个记录(我正在使用NetworkNavigator自定义视觉)。

Is there a way to have one filter that searches in both of my columns at once? 有没有一种方法可以一次在我的两个列中进行搜索? (I am transitioning from Qlik to PBI. In Qlik this works out of the box) (我正在从Qlik过渡到PBI。在Qlik中,这是开箱即用的)

One way to do this is to make your network table symmetric by taking the union of the table with itself having the source and target switched. 一种方法是通过将表与本身已切换了源和目标的表合并,使网络表对称。

Try creating a New Table (under Modeling tab) using a formula along these lines: 尝试使用公式按照以下几行创建一个新表(在“建模”选项卡下):

AllNodes = DISTINCT(UNION(SUMMARIZECOLUMNS(Network[Source], Network[Target]),
                          SUMMARIZECOLUMNS(Network[Target], Network[Source])))

Then build your Network Navigator visual based on that table instead of the original and add a slicer on either column of this table to do your filtering. 然后,基于该表而不是原始表构建Network Navigator可视化文件,并在此表的任一列上添加切片器以进行过滤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM