Forum Discussion
Percentage DAX Formula
Please show me the result of CountClicks..
it gives you an error or the result is not the correct?
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.
- SachinC9 years agoHelper V
I think I understand where you are coming from but I am lost. Can you explain again please. you are right, the values have blanks. Thanks.
- SachinC9 years agoHelper V
I think I understand where you are coming from but I am lost. Can you explain again please. you are right, the values have blanks. Thanks.
- SachinC9 years agoHelper V
My CountClicks is this: CountClicks = CALCULATE(COUNTA([Clicks]),FILTER(VPBI_Marketing_MailerStats,[clicks]<>BLANK()))
What do I modify it to please?
- Sean9 years agoCommunity Champion
Trim and Clean the Column in the Query Editor and then Replace with null
Hope this helps! :smileyhappy:
- SachinC9 years agoHelper V
Didn't work. Good effort though.
- v-huizhn-msft9 years agoMicrosoft Employee
Hi SachinC,
It's weird, I am unable to reproduce why you get the error result. Could you please share your .pbix file for further analysis?
Best Regards,
Angelia - SachinC9 years agoHelper V
Unfortunately there's a lot of confidential data in my PBIX file. How else can you help me please? Thanks.
- SachinC9 years agoHelper V
Hi, I've managed to anonymise the data. How do I upload an Excel sheet please?
- v-huizhn-msft9 years agoMicrosoft Employee
- SachinC9 years agoHelper V
ok, it's now mysteriously working. No idea what happened, but its all looking well. thanks for your help.
- v-huizhn-msft9 years agoMicrosoft Employee
Hi SachinC,
You have resolve your issue? If it does, please mark the corresponding reply as answer, which will help more people.
Thanks,
Angelia