Forum Discussion
How to hover on table visual in PowerBI
Dhairyadanextian : The solution provided is not working in this case.
Explaining the exact requirement here:
1. We have a table containing below columns:
| category | field |
| Happay | Partner |
| MSM | Partner |
| Paher | Partner |
| Magaling | Partner |
| Chatra City | Branch |
| Tandwa | Branch |
| Kodarma | Branch |
| Hazaribagh city | Branch |
| Farming | Asset |
| Micro service | Asset |
| animal husbandry | Asset |
I have used this table to apply a slicer on the visuals and keep field column there in slicer. So, we got 3 different fields in slicer drop down (partner,branch and asset).
I have applied this slicer to my visual which is nothing but a matrix table that is showing category wise loan app_id and loan amount.
sample matrix visual look like:
| Category | loan app_id | Loan amount |
| Happay | 367 | 25,000.00 |
| MSM | 890 | 34,670.00 |
| Paher | 1120 | 78,000.00 |
| Magaling | 760 | 23,890.00 |
| Total | 3137 | 1,61,560.00 |
Please note for this i have selected slicer as partner, if we will change the slicer like branch or asset then it's corresponding value will show in the matrix visual.
Now, I wanted to see % percent contribution of each category when i hover on to the cell like loan app_id or amount i,e as i hover on suppose (367) it will show 11.69 % of the total and so on.
Please suggest some easy and correct way to do this.
Hi Md_Ruman ,
This is why I asked for a sample data.
You need to get the subtotal for each field first and the sum of each category is to be divided by the subtotal of its corresponding field. Try this:
App id % =
DIVIDE (
SUM ( Data[loan app_id] ),
CALCULATE ( SUM ( Data[loan app_id] ), ALLEXCEPT ( Data, Data[Field] ) ) //subtotal by field
)
You can then use this measure in a visual that allows a measure as a custom tooltip