Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a data like this..
.
Report is created on matrix visual like this...
Here i used a calcualtion for count values is
Solved! Go to Solution.
Hi @Anonymous ,
You can create a measure as below:
countvalue =
VAR _count =
CALCULATE ( DISTINCTCOUNT ( 'Sheet1'[Policy] ), 'Sheet1'[ENDORSEMENT] = 0 )
VAR _percentage =
DIVIDE (
_count,
CALCULATE (
DISTINCTCOUNT ( 'Sheet1'[Policy] ),
FILTER (
ALLSELECTED ( 'Sheet1' ),
'Sheet1'[Category] = SELECTEDVALUE ( 'Sheet1'[Category] )
&& 'Sheet1'[ENDORSEMENT] = 0
)
),
0
)
RETURN
IF (
SELECTEDVALUE ( 'Sheet1'[Category] ) = "Percentage of Total",
FORMAT ( _percentage, "0%" ),
_count
)
Best Regards
Hi @Anonymous ,
You can create a measure as below:
countvalue =
VAR _count =
CALCULATE ( DISTINCTCOUNT ( 'Sheet1'[Policy] ), 'Sheet1'[ENDORSEMENT] = 0 )
VAR _percentage =
DIVIDE (
_count,
CALCULATE (
DISTINCTCOUNT ( 'Sheet1'[Policy] ),
FILTER (
ALLSELECTED ( 'Sheet1' ),
'Sheet1'[Category] = SELECTEDVALUE ( 'Sheet1'[Category] )
&& 'Sheet1'[ENDORSEMENT] = 0
)
),
0
)
RETURN
IF (
SELECTEDVALUE ( 'Sheet1'[Category] ) = "Percentage of Total",
FORMAT ( _percentage, "0%" ),
_count
)
Best Regards
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.