Forum Discussion
Anonymous
8 years agoNot applicable
Expression that yield variant data type error cannot be used to defined calculated columns
Hi, * Im new to power bi and moving from tableau backgroud. I have a calculation, desribing that in words(nested if) if date_col is not null then if(date_col) < today then display tod...
- 8 years ago
Anonymous
You can use this MEASURE
Please see attached file
Measure = VAR result = MIN ( 'handle blanks'[Estimated Delivery Date] ) RETURN IF ( ISBLANK ( result ), "Data Unavailable", FORMAT ( result, "Short date" ) )
Zubair_Muhammad
8 years agoCommunity Champion
Anonymous
Could you copy paste some data with expected results?
Anonymous
8 years agoNot applicable
Let me know if you are not able to access this link
- Zubair_Muhammad8 years agoCommunity Champion
Anonymous
In the Excel file, could you add a column for expected result?
- Anonymous8 years agoNot applicable
Hi Zubair,
I have added the expected result in pbix file where i have written the calculation as well in algorithmic form.
if you could see blanks in the pbix files for dates, those have to be replaced with 'data unavailable'
- Zubair_Muhammad8 years agoCommunity Champion
Anonymous
You can use this MEASURE
Please see attached file
Measure = VAR result = MIN ( 'handle blanks'[Estimated Delivery Date] ) RETURN IF ( ISBLANK ( result ), "Data Unavailable", FORMAT ( result, "Short date" ) )