Forum Discussion
Percentage DAX Formula
Hi, please try with these measures:
CountAudiences = COUNTA(Table1[Audience])
CountClicks = CALCULATE(COUNTA(Table1[Clicks]),FILTER(Table1,Table1[Clicks]<>BLANK()))
% = DIVIDE([CountClicks],[CountAudiences])
Are you sure the CountClicks formula is correct? The FILTER bit doesn't seem to work. Please help? Thank you.
- Vvelarde9 years agoCommunity Champion
Please show me the result of CountClicks..
it gives you an error or the result is not the correct?
- SachinC9 years agoHelper V
Hi,
See attached. It's as if it's putting extra lines in for the same values and making % = 1.00.
Pls help.
Thanks
.
- Vvelarde9 years agoCommunity Champion
in my test file the CountClicks works Ok.
Let me see:
-Your Click column is Text.
-When No have clicks is a blank row in this column? or have a space or something. To discard this add a calculated column and put
Column=Len(ColumnwithClicks) the result to empty rows should be 0.