HEP WITH DAX FORMULA

Limit Braker

New Member
Joined
Jun 17, 2020
Messages
10
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
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
6,699
try to use BUMP after 24 hours
give people a chance to read your post
 

mamady

Board Regular
Joined
Sep 23, 2011
Messages
153
Office Version
  1. 365
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

Threads
1,108,740
Messages
5,524,557
Members
409,584
Latest member
Devil_717

This Week's Hot Topics

Top