ehardway123
New Member
- Joined
- May 24, 2013
- Messages
- 22
Hello,
I am having a had time having this function work properly. I am creating a proper P and L sheet using powerpivot. Meaning I want both my expenses and revenue as positive value on the sheet. Right now the revenue show up as negative and expenses as positive. So I need to make the Revenue Positive and also keep the expenses positive also. This website showed me how by using HASONEVALUE using an DAX IF statement but its not working properly. I get the error message, The syntax ',' is incorrect. What I have is Account type which is Revenue and expenses, and then I have account group which is subcatgories under those and account names which is services/products under the account group and also division amount, which is the dollar amount of each revenue/expense. the following is the formula I used:
=([DIVISION AMT])*-1)*IF(HASONEVALUE([ACCOUNT TYPE])), IF(VALUES([ACCOUNT TYPE])= "EXPENSES" ,-1, 1), 1)
I am having a had time having this function work properly. I am creating a proper P and L sheet using powerpivot. Meaning I want both my expenses and revenue as positive value on the sheet. Right now the revenue show up as negative and expenses as positive. So I need to make the Revenue Positive and also keep the expenses positive also. This website showed me how by using HASONEVALUE using an DAX IF statement but its not working properly. I get the error message, The syntax ',' is incorrect. What I have is Account type which is Revenue and expenses, and then I have account group which is subcatgories under those and account names which is services/products under the account group and also division amount, which is the dollar amount of each revenue/expense. the following is the formula I used:
=([DIVISION AMT])*-1)*IF(HASONEVALUE([ACCOUNT TYPE])), IF(VALUES([ACCOUNT TYPE])= "EXPENSES" ,-1, 1), 1)