Forum Discussion
Percentage DAX Formula
Hi thanks for that. However, my values for Column A and Column B is text. I am counting Column A and ColumnB but I want to do an inline percentage. See example below. 33 and 31 are counts of Text fields, I want to put an inline column to divide 31/33= 93.93%
Thanks.
Would you be able to post a dummy data keeping the table structure? and also if possible the result desired.
- SachinC9 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.
- Vvelarde9 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.