Now, I need a way to keep this ‘Grand Total’ for the selected period with DAX Query: -
by ignoring any selection on bar chart. desired grant total = 1097. How do I achieve that ? Could someone please guide me?
I tried the function ALLSELECTED(). But is not working. ALLSELECTED() contains 1 day when a bar chart is clicked. – see measure: Total Patients (fixed).
ALLSELECTED won’t work here because it recognizes that you have selected another date from the date table.
Basically you just need to use visual interactions if you specifically want this. Why can’t you use it? This seems to make a lot of sense if it’s what you are after.
Here’s another option for you that can work but it requires creating another date table.
This sort of technique is more advanced though. It’s a bit different to exactly you one but it will give you the idea around how to solve this. This more just shows you how to create date insights that don’t interact with each other.
I honestly do believe though visual interactions is what this is perfect for.
Thanks Sam & Ankit. Your explains make sense.
Your solutions/suggestions are very helpful. Appreciate Sam pointing me to the training video! You guys are awesome!
These are both really elegant solutions. I was working on this one using a second disconnected date table when I saw your post. Use of TREATAS to handle this without complicating the data model didn’t occur to me.
Thanks @BrianJ for appreciation. I also tried few things before coming with this solution.
Just trying to get used to kind of questions we receive on this forum and how detail explanation you guys provide. Hopefully will be able to contribute more in future.
I think your forum posts have been terrific. One suggestion though is to format any DAX code you provide to make it more readable and easier to understand. Here’s a brief video on how to do that within the forum: