DAX create empty table with specific column names and no rows

前端 未结 3 1893
南方客
南方客 2020-12-21 21:07

How to create a table with a specified column name and no rows at all. The following oneliner does what I want but shows error message that there should be second argument i

3条回答
  •  温柔的废话
    2020-12-21 21:37

    You could just filter it. Or select TOPN 0.

    TOPN:

    Table = TOPN(0;DATATABLE("Product";STRING;{{}}))
    

    FILTER:

    Table = FILTER(DATATABLE("Product";STRING;{{}});0)
    

提交回复
热议问题