Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Here is the dataset:
Year Type Value
2023 | a | 20 |
2023 | b | 50 |
2023 | c | 30 |
Here is the Visual: I want to see percentage when hover over a category:
Here is how to make the visual:
Here is the DAX I used to make the code:
Measure =
var a = sum('Table'[Value])
var b = if(HASONEVALUE('Table'[Type]), max('Table'[Value]) )
return b / a
But the result does not show an accurate percentage when hovered:
Expected result: 30/100 = 30% and not 100%
Solved! Go to Solution.
Hi @bipowerbix
Please try
Measure =
DIVIDE (
SUM ( 'Table'[Value] ),
CALCULATE ( SUM ( 'Table'[Value] ), ALL ( 'Table'[Type] ) )
)
Hi @bipowerbix
Please try
Measure =
DIVIDE (
SUM ( 'Table'[Value] ),
CALCULATE ( SUM ( 'Table'[Value] ), ALL ( 'Table'[Type] ) )
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |