Power BI 中书签钻取的最佳方法
Best Approach for Bookmark Drill through in Power BI
我通过下拉日期切片器在仪表板主页登录页面(第 1 页)上选择了一个会话日期(日)。所选日期是 selected 日期度量,定义为:
SelectedDate = cALCULATE(max('Date'[DayTextLong]),FILTER('Date',SELECTEDVALUE('DateSelector'[DateId],MAX('DateSelector'[DateId])) = 'Date'[DateId]))
DateSelector table 是一个独立的断开连接的日期 table,它是用于下拉到 select 一天的切片器的日期缩减列表。此数据模型中有一个连接日期 table。
在仪表板主页登录页面(第 1 页)的记分卡上,我有一个书签(因为无法在记分卡上钻取),详细信息 table 和该页面上的会话每日金额2、我要显示哪些客户的详细资料。这是来自包含请求日期的 table,我需要通过 selecteddate measure 过滤 table。如何在第 2 页上显示汇总的 table 视觉效果,该视觉效果从第 1 页上选择的“选定日期”度量中筛选出来?
我正在尝试创建一个度量(请求日期 Boo),它将度量设置为 1 或 0,以便相关记录从会话请求 table 中显示,这只是会话名称、客户名称和请求日期,然后在第 2 页上放置一个可视过滤器,说明请求日期 Boo=1 的位置。这失败了,因为它告诉我我需要汇总请求日期,所以找不到单个值的错误。
我想正确地执行此操作,想知道在报告的第 2 页上显示视觉效果的正常方式是什么,您要在其中使用日期并对数据中的另一个 table 应用过滤器使用该日期的模型。
希望这个问题有道理。
For what I understood, you have a filter on page 1, that must be kept when you navigate to page 2.
I've got three options:
- Put the same date filter slicer on page 2 and allow it to sync with the others. In this way, when you navigate between pages that share synced slicers the filters will be kept. (this was also suggested by a comment)
- Use the drillthrough functionality (docs here). This is a bit more complicated and does not create a "standard" page but it allows you to navigate to a detail page, based on a set of configured fields, when you navigate to this page you can also keep all the filters that were set before reaching this page. (This is a bit complicated to explain, the best thing you can do is to try it and see if it suits your needs)
- Use What If parameters (docs here). I've never used for something like that, but if you can use them to choose a date you may use them to solve your problem.
All considered, probably the first solution is the easiest and most common solution for this kind of problem
我通过下拉日期切片器在仪表板主页登录页面(第 1 页)上选择了一个会话日期(日)。所选日期是 selected 日期度量,定义为:
SelectedDate = cALCULATE(max('Date'[DayTextLong]),FILTER('Date',SELECTEDVALUE('DateSelector'[DateId],MAX('DateSelector'[DateId])) = 'Date'[DateId]))
DateSelector table 是一个独立的断开连接的日期 table,它是用于下拉到 select 一天的切片器的日期缩减列表。此数据模型中有一个连接日期 table。
在仪表板主页登录页面(第 1 页)的记分卡上,我有一个书签(因为无法在记分卡上钻取),详细信息 table 和该页面上的会话每日金额2、我要显示哪些客户的详细资料。这是来自包含请求日期的 table,我需要通过 selecteddate measure 过滤 table。如何在第 2 页上显示汇总的 table 视觉效果,该视觉效果从第 1 页上选择的“选定日期”度量中筛选出来?
我正在尝试创建一个度量(请求日期 Boo),它将度量设置为 1 或 0,以便相关记录从会话请求 table 中显示,这只是会话名称、客户名称和请求日期,然后在第 2 页上放置一个可视过滤器,说明请求日期 Boo=1 的位置。这失败了,因为它告诉我我需要汇总请求日期,所以找不到单个值的错误。
我想正确地执行此操作,想知道在报告的第 2 页上显示视觉效果的正常方式是什么,您要在其中使用日期并对数据中的另一个 table 应用过滤器使用该日期的模型。
希望这个问题有道理。
For what I understood, you have a filter on page 1, that must be kept when you navigate to page 2. I've got three options:
- Put the same date filter slicer on page 2 and allow it to sync with the others. In this way, when you navigate between pages that share synced slicers the filters will be kept. (this was also suggested by a comment)
- Use the drillthrough functionality (docs here). This is a bit more complicated and does not create a "standard" page but it allows you to navigate to a detail page, based on a set of configured fields, when you navigate to this page you can also keep all the filters that were set before reaching this page. (This is a bit complicated to explain, the best thing you can do is to try it and see if it suits your needs)
- Use What If parameters (docs here). I've never used for something like that, but if you can use them to choose a date you may use them to solve your problem.
All considered, probably the first solution is the easiest and most common solution for this kind of problem