[英]Related topics in Power BI
I have the following data model: 我有以下数据模型:
topics topics_articles articles
------- --------------- ---------
id topic_id id
article_id
With topic_id
and article_id
having bi-directional relationships respectively with topics[id]
and articles[id]
. 随着
topic_id
和article_id
分别具有与双向关系topics[id]
和articles[id]
I'm trying to create a new table to show related topics: 我正在尝试创建一个新表以显示相关主题:
A
A
的报告 So far I have this: 到目前为止,我有这个:
topics_related =
CALCULATETABLE(articles_topics, UNION(VALUES('articles'[id]), VALUES('articles_topics'[article_id])))
But no matter what I try, topics_related
always contains all the topics. 但是无论我尝试什么,
topics_related
始终包含所有主题。
Could you give me some pointers as to how creating that calculated table please? 您能否给我一些有关如何创建该计算表的指示?
A calculated table cannot be responsive to slicers unless is computed it within a measure since they are computed only once each time the data is refreshed. 除非在一个度量范围内对其进行计算,否则已计算的表不能响应切片器,因为每次刷新数据时它们仅被计算一次。
If your tables are related as you described, then you should be able to simply create a slicer on the topic and a table visual with the articles and the table should automatically do the filtering you've described in response to the slicer choices. 如果您的表与您所描述的相关,那么您应该能够简单地在该主题上创建切片器,并在表格中显示带有文章的外观,并且该表应根据切片器的选择自动执行您描述的过滤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.