Forum Discussion

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

data is getting Aggregated / Dax help

Hi Everyone, I am trying to create a Pivot table using Dax in Excel I have 4 columns in Table  1) Request ID  [ text ] 2) Current status  [ text ] 3) Cv Date  [ date ] 4)  Days_CV [ Today Da...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Madhu155154 ,

    Something like this?This is because you can't reference columns directly in measures, you have to use them in conjunction with aggregate functions. This is because it is calculated in the filter context. The computation environment for a column is the row context, it can reference the column directly.

    Try this.

    =
    Var Res_ = AVERAGE(Append1[Req - CV share] )
    
    return
    
    if( ISBLANK(MAX('Append1'[CV date])),"",Res_)