Forum Discussion
harsha1234
8 years agoRegular Visitor
Create a measure to visualize percentage
Hi All, I have these columns in the power query editor: Name Status Adam Registered Bob Not Registered Steve Registered Katie N...
- 8 years ago
Hey,
just insert this little row to the filter section of each CALCULATE
,'Table'[Type] = "A"
Regards,
Tom
TomMartens
Super User
8 years agoHey,
I guess this should do the work:
name of the measure =
var theregisteredones =
CALCULATE(
COUNT('table'[name])
,ALL('table')
,'table'[status] = "Registered")
var allpeople =
CALCULATE(
COUNT('table'[name])
,ALL('table')
)
return DIVIDE(theregisteredones, allpeople, BLANK())Hopefully this is what you are looking for
Regards,
Tom
harsha1234
8 years agoRegular Visitor
Thanks!!