Forum Discussion

superhayan's avatar
superhayan
Icon for Helper I rankHelper I
2 years ago
Solved

"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 ...
  • Ritaf1983's avatar
    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