Forum Discussion
Calculate %
Table real name is MailPackage and Column name is MAIL COUNT instaed of Profit.
I am getting following message.
I right clicked on Table and choose New Column and insert following code:
The syntax for 'sum' is incorrect. (DAX(DIVIDE(MailPackage[MAIL COUNT]sum(MailPackage[MAIL COUNT])))).
Your help will appreciaed again. Thanks
I added "," before sum and its work BUT
Please note:
I have a total of mail count (Profit in above example) in the last row.
It is 280 in above example.
I want to get result of percentage as mail counts/total mail counts * 100 for each row in the newly percentage column as below:
60/280*100
80/280*100
40/280*100
90/280*100
10/280*100
Thanks
- Wendeley-North5 years agoResolver I
Try Column = DIVIDE( MailPackage[MAIL COUNT], SUM(MailPackage[MAIL COUNT] )
No DAX required.
- sdhn5 years agoResponsive Resident
It is ok. I removed the total from the source file. I appreciate your help. thx