Forum Discussion
Conditional Formatting within Tooltip
- 6 months ago
Hi,
Thanks for the help with this, its much appreciated.
Unfortunately, this isn't the behaviour I'm looking for as a solution, I need the Max & Min month name to be showing in the tooltip, preferably in its own column, your solution doesn't make it immediately obvious what months out of a possible 12 are the Max and Min.
I will close this ticket and re-open a new one.It maybe the fact that what I'm asking for is not even possible so it will be good to re-issue a new version of this ticket to see if that even possible.
Once again, thanks for all your help!
Correct me if i'm wrong but its the fact that Feb & Mar are appearing that is causing this?
(This pbix file hasn't been refreshed since mid January).
I thought ISINSCOPE would Filter out future months?
Hi ArchStanton ,
This behavior is expected due to the way tooltips handle filter context. When a measure is calculated in a tooltip, it is evaluated only for the specific data point being hovered over, such as a single month. Consequently, the measure does not automatically access all months needed to determine minimum or maximum values. This is why the same DAX expression works in the matrix but not in the tooltip.
To resolve this, you need to explicitly expand the filter context within the measure, allowing evaluation across all relevant months while still respecting slicer selections. Using ALLSELECTED on the month field ensures visibility into the full range of values, and filtering out blanks prevents empty periods from being considered as the minimum. With these adjustments, min and max calculations will work consistently in both matrix and tooltip views.
Thank you.
- ArchStanton6 months agoPower Participant
Hi, thanks again for the reply.
My DAX knowledge isn't the best, I'm still learning, would you be able to help with the code on this please? - v-tejrama6 months agoCommunity Support
Hi ArchStanton ,
This behavior was happening because when a report tooltip is triggered, the hovered month applies a strong filter context to the measures. As a result, the minimum and maximum values were being evaluated only for that specific month instead of across all visible months.
To address this, the month-level filter was explicitly removed within the calculation while still respecting slicer selections. With this adjustment, the tooltip now correctly shows the current month’s value along with the minimum and maximum across all visible months.
Please refer to the attached PBIX file for the updated implementation.
Best Regards,
Tejaswi - ArchStanton6 months agoPower Participant
Hi,
Thanks for the help with this, its much appreciated.
Unfortunately, this isn't the behaviour I'm looking for as a solution, I need the Max & Min month name to be showing in the tooltip, preferably in its own column, your solution doesn't make it immediately obvious what months out of a possible 12 are the Max and Min.
I will close this ticket and re-open a new one.It maybe the fact that what I'm asking for is not even possible so it will be good to re-issue a new version of this ticket to see if that even possible.
Once again, thanks for all your help!