Forum Discussion
Rubal
7 years agoHelper II
DAX IF Formula error
Hi, I am getting the below errors on the If Formula. Can anyone please help on how to resolve it? Thank you. Vol(Cases / Suom) = if (t_sales_aggregate[Actual or Forecast]="Forecast", (t...
Arjunarao
7 years agoResolver I
Hi,
To change the data type of a column from source is :
Go to Edit Query
Select the column
Go to Transform tool bar > Data Type and change
Rubal
7 years agoHelper II
Hi Arjun,
I don't even see the column into the query editor? Is this because it is a column measure?
- Arjunarao7 years agoResolver IYes.
Specified columns in your expression.
Vol(Cases / Suom) =
IF (
t_sales_aggregate[Actual or Forecast] = "Forecast",
( t_sales_aggregate[Volume (Cases)] && t_sales_aggregate[Volume (SUOM)] )
* AVERAGE ( t_sales_aggregate[Forecast Growth] ),
( t_sales_aggregate[Volume (Cases)] && t_sales_aggregate[Volume (SUOM)] )
)