Forum Discussion
SachinC
9 years agoHelper V
Percentage DAX Formula
Hi, I want to create a percentage figure, i.e. x%, from two text fields. It's basically calculating click through rate as a %. I've got a count of my audience for a mailshot in a column, a count of...
SachinC
9 years agoHelper V
See attached. I have manually computed the % value in the pivot, I can't seem to do this in PowerBI.
All the columns are text, I am doing counts to get numeric values from them. Thanks.
Vvelarde
9 years agoCommunity Champion
Hi, please try with these measures:
CountAudiences = COUNTA(Table1[Audience])
CountClicks = CALCULATE(COUNTA(Table1[Clicks]),FILTER(Table1,Table1[Clicks]<>BLANK()))
% = DIVIDE([CountClicks],[CountAudiences])
- SachinC9 years agoHelper V
Are you sure the CountClicks formula is correct? The FILTER bit doesn't seem to work. Please help? Thank you.