Forum Discussion
Trouble with measures and tooltips
Hi all!
I have a powerbi dashboard where some graphics show trends of certain events from 2020-2025 by quarter and multiple insurance payers are shown via different lines (private, medicare ffs, medicaid, etc.). I also have a total line that is the sum of all payers' events. These graphics are filterable by event (multiple procedures we are interested in), year/quarter, payer. When i hover over a specific spot on the chart, a box appears displaying the exact counts for each payer, which i want! However, i want to add in the % of each payer's event counts so that viewers can understand how much of an event volume is coming from each insurance payer. I've been trying to solve this via new measures calculated with the equations below, but my denominator is not populating for everyone and the % only shows up as 100% for the total line. Please help if you have any suggestions!
Hi,
As per your understanding, the goal is to show each payer’s percentage of the total event volume when hovering over the chart, while keeping filters such as event, year/quarter, and other slicers.
The issue occurs because your denominator is filtering to Payer = "Projected Total", which only returns values for that line. As a result, the percentage for other payers becomes blank and the total shows 100%.
Recommended Approach
Instead of filtering to "Projected Total", calculate the total across all payers by removing only the payer filter.
Example:
Volume =
SUM(Pain_event_counts[Count])Total Volume (All Payers) =
CALCULATE(
[Volume],
REMOVEFILTERS(Pain_event_counts[Payer])
)% of Total Volume =
DIVIDE(
[Volume],
[Total Volume (All Payers)]
)This Works
- REMOVEFILTERS(Payer) removes only the payer filter.
• All other filters (event, year, quarter, etc.) remain applied.
• Each payer is divided by the same total volume for that point in time.
When hovering a point on the chart you will see something like:
Private → Count + % of total
Medicare FFS → Count + % of total
Medicaid → Count + % of total
Total → 100%Add the % of Total Volume measure to the Tooltip field well of the visual so viewers can see both counts and percentages.
This approach keeps the calculation dynamic across all slicers and time periods.
Thanks!
- REMOVEFILTERS(Payer) removes only the payer filter.
If you have a payer dimension (recommended), remove filters from that table/column, not the fact table.
Volume = SUM ( Pain_event_counts[Count] ) Projected Total Volume = CALCULATE ( [Volume], REMOVEFILTERS ( 'Payer'[Payer] ), 'Payer'[Payer] = "Projected Total" ) % of Projected Total = DIVIDE ( [Volume], [Projected Total Volume] )
5 Replies
- SamInogic
Super User
Hi,
As per your understanding, the goal is to show each payer’s percentage of the total event volume when hovering over the chart, while keeping filters such as event, year/quarter, and other slicers.
The issue occurs because your denominator is filtering to Payer = "Projected Total", which only returns values for that line. As a result, the percentage for other payers becomes blank and the total shows 100%.
Recommended Approach
Instead of filtering to "Projected Total", calculate the total across all payers by removing only the payer filter.
Example:
Volume =
SUM(Pain_event_counts[Count])Total Volume (All Payers) =
CALCULATE(
[Volume],
REMOVEFILTERS(Pain_event_counts[Payer])
)% of Total Volume =
DIVIDE(
[Volume],
[Total Volume (All Payers)]
)This Works
- REMOVEFILTERS(Payer) removes only the payer filter.
• All other filters (event, year, quarter, etc.) remain applied.
• Each payer is divided by the same total volume for that point in time.
When hovering a point on the chart you will see something like:
Private → Count + % of total
Medicare FFS → Count + % of total
Medicaid → Count + % of total
Total → 100%Add the % of Total Volume measure to the Tooltip field well of the visual so viewers can see both counts and percentages.
This approach keeps the calculation dynamic across all slicers and time periods.
Thanks!
- REMOVEFILTERS(Payer) removes only the payer filter.
- Ashish_Mathur
Super User
Hi,
Without the file, cannot help much but try this. In the second measure, replace removefilters with all. Also, remove everything after the second comma. If this does not help, then share the download link of the PBI file clearly showing the problem there.
- cengizhanarslan
Super User
If you have a payer dimension (recommended), remove filters from that table/column, not the fact table.
Volume = SUM ( Pain_event_counts[Count] ) Projected Total Volume = CALCULATE ( [Volume], REMOVEFILTERS ( 'Payer'[Payer] ), 'Payer'[Payer] = "Projected Total" ) % of Projected Total = DIVIDE ( [Volume], [Projected Total Volume] )- v-menakakota
Community Support
Hi ldelgado622 ,
Thanks for reaching out to the Microsoft fabric community forum.
I would also take a moment to thank Ashish_Mathur and cengizhanarslan , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .
Best Regards,
Community Support Team- v-menakakota
Community Support
Hi ldelgado622 ,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you .
Best Regards,
Community Support Team