Forum Discussion
Anonymous
8 years agoNot applicable
Power BI Formula Help
Hello, I'm having problems getting an expression to work as I am getting the "Expressions that yield variant data-type cannot be used to define calculated columns". This is what I entered "QC...
Greg_Deckler
8 years agoCommunity Champion
Try using BLANK() instead of "".
You are trying to return a number under one condition and text under the other condition.
- Anonymous8 years agoNot applicable
Now I am getting a different error.
"Function 'DATEADD' expects a contiguous selection when the date column is not unique, has gaps or it contains time portion."
- Greg_Deckler8 years agoCommunity Champion
Perhaps try:
QC Release Date = IF(IM_ItemWarehouse[Warehouse Code] = "QC",DATEADD(IM_ItemCost[ReceiptDate].[Date],17,DAY),BLANK())