HEP WITH DAX FORMULA

Limit Braker

New Member
Joined
Jun 17, 2020
Messages
13
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi guys,

I want to get an average depending of the "year"(column) by dividing a certain amount of days by the sales.

heres moreorless the funciton i came up with but it keep saying its wrong, am i filtering the wrong way?

=IF(FACTSALES[Año]=2019,[Sum of Value]/365,IF(FACTSALES[Año]=2018,[Sum of Value]/365,IF(FACTSALES[Año]=2017,[Sum of Value]/245,0)

Any suggestions on how to do it better?

Error message:
This formula is invalid or incomplete: 'The expression is not valid or appears to be incomplete. Please review and correct the expression.
The end of the input was reached.

Please, thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If I understood your data set structure, I think the below is your desired formula

=IF(FACTSALES[Ano]=2019,SUM(FACTSALES[Value]/365,IF(FACTSALES[Ano]=2018,SUM(FACTSALES[Value]/365,IF(FACTSALES[Ano]=2017,SUM(FACTSALES[Value]/245,0)))

Please try and advise
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,957
Members
448,535
Latest member
alrossman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top