Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mauroanelli
Helper I
Helper I

new query from table

hi all,

i create a new table with with some dax function, now i need to get it to query editor to modify data and merge it qith other queries.

how can i do it?

1 ACCEPTED SOLUTION

@mauroanelli

 

Let try to explain a method with a image.

 

Union and Select ColumnsUnion and Select Columns

Regards 

 

Victor




Lima - Peru

View solution in original post

7 REPLIES 7
Vvelarde
Community Champion
Community Champion

@mauroanelli

 

Hi, The Table created with DAX can't be used in Query Editor.

 

Regards

 

Victor

 

 

 




Lima - Peru

if i append all the queries i need and the create a new table with this new append query, then can i appen this table with the other i have created with dax?

@mauroanelli

 

Depends on your scenario ** But In DAX You can use UNION

 

 




Lima - Peru

union works only if the column are the same

@mauroanelli

 

Yes, but you can Select the Columns of Table 2 and Name equal to Table 1with the SelectColumns that you want to append.

 

MYNEWTABLE =
UNION (
    MYTABLE1;
    SELECTCOLUMNS (
        TABLE2;
        "NAME OF COL1 IN TABLE 1"; TABLE2[COLUMN1];
        "NAME OF COL2 TABLE 1"; TABLE2[COLUMN2]
    )
)

 

Victor




Lima - Peru

let me explain better.

i have a table made by dax with 5 column and a query with 10 column. 5 of this column have the same title. if it was 2 queries i will append them and get all the same 5 plus the other 5 but with rows = blank.

now i need to do the same but with the table.

if only we could make a query from a table all of this would be simple

@mauroanelli

 

Let try to explain a method with a image.

 

Union and Select ColumnsUnion and Select Columns

Regards 

 

Victor




Lima - Peru

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.