How to make the max date in a card visual unchanged so that it will not be filtered by the same date filter for other visuals?

huangapple go评论65阅读模式
英文:

How to make the max date in a card visual unchanged so that it will not be filtered by the same date filter for other visuals?

问题

目标是通知读者最新可用数据是什么(即数据集的最大日期)。然而,我有其他使用相同日期字段在x轴上的线形图可视化。例如,如果数据集的数据截止到2023年3月9日,但当用户筛选日期范围为2023年1月1日至2023年1月5日时,最大日期卡片可视化现在将显示2023年1月5日。

我搜索了一下并尝试在DAX中使用ALLSELECTED,但最大日期仍然被筛选。以下是我的DAX表达式:Latest Date = CALCULATE(format(max('dwh vw_f_attendance'[registration_date]), "dd MMMM yyyy"), ALLSELECTED('dwh vw_f_attendance'[registration_date]))

英文:

Objective is to inform readers what is the latest available data (i.e., max date of the data set). However, I have other line chart visuals using the same date field in the x-axis. For instance, if the dataset has data up to 9th March 2023, but when the user filters date range between 1st Jan 2023 to 5th Jan 2023, the max date card visual will now show 5th Jan 2023.

I googled and tried using ALLSELECTED in DAX, but the max date is still being filtered. Below is my DAX: Latest Date = CALCULATE(format(max('dwh vw_f_attendance'[registration_date]), "dd mmmm yyyy"),ALLSELECTED('dwh vw_f_attendance'[registration_date]))

答案1

得分: 0

选择你的折线图,转到格式选项卡,编辑交互,然后简单地禁用卡片可视化的跨筛选功能。

英文:

Select your line charts, goto the Format tab, Edit interactions and simply disable the cross-filtering of your card visual.

huangapple
  • 本文由 发表于 2023年3月9日 17:57:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75682967.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定