Forum Discussion
superhayan
Helper I
2 years ago"A Single Value for Column Cannot Be Determined" Error Message when Add New Column
Hello all, it would be great if someone here can help me with this. I have a simple table of 3 columns: Deal Close Date, Revenue Date, Valid. The Date columns are in date format and Valud column ...
- 2 years ago
Hi superhayan
As you create a column and not the measure you need a formula on "cell level".
Try to use "if" :Deltadates = if(NOT ISBLANK('Table'[Revenue date]) && 'Table'[Deal close date]>date(2018,01,01) && 'Table'[Valid]="yes",DATEDIFF('Table'[Deal close date],'Table'[Revenue date],DAY),blank())pbix with example is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Ritaf1983
Super User
2 years agoHi superhayan
As you create a column and not the measure you need a formula on "cell level".
Try to use "if" :
Deltadates = if(NOT ISBLANK('Table'[Revenue date]) && 'Table'[Deal close date]>date(2018,01,01) && 'Table'[Valid]="yes",DATEDIFF('Table'[Deal close date],'Table'[Revenue date],DAY),blank())
pbix with example is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
superhayan
Helper I
2 years agoThat works! I didn't reaslize that CALCULATE cannot be used on making calculated columns. Thank you!