Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Union Dax with selectedcolumns

Hi All, 

            I Need one dax measure for creating new table that contains Table A's one column and need to add one Extra Row like any word "xxx".

            It can created by below dax.

Measure_1 =
UNION(
    SELECTCOLUMNS('Table A',"Headers", "Table A"[Name]),
    DISTINCT(SELECTCOLUMNS('Table A',"Headers","xxx"))
)
 
 This measure creating the xxx inside that new table column.
 I need to add one more step. 
 If this new column added to the matrix or table visual, i need to show the "xxx" at the top.
 How to sort that column?
 Kindly help me.
 Thanks in advance.

3 Replies