Forum Discussion

unclejemima's avatar
unclejemima
Icon for Post Patron rankPost Patron
8 years ago
Solved

Function expects a column name as argument number 4? Help :-)

I'm trying to use this code but getting the error "Fuction Expects ADDCOLUMNS expects a column name as argument number 4.""   DateTime = ADDCOLUMNS ( CROSSJOIN ( CALENDAR(MIN(Invoice[N...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Hi unclejemima

     

    Yes... AddColumn is a function which returns a Table......It cannot be used in Calculated Columns and Measures....Directly..

     

    However you can use this code as a CALCULATED TABLE
    So if you go to Modelling Tab>>New Table and paste this code...you will get an entirely new Table in your Model