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.
Hi,
I am looking for a functionality in Power BI where I can externally map the multiple attributes to staging table attributes. There are multiple data sources with different structure and attribute names that needs to be added in one table. One way to do that is SSIS and connect the staging table to PowerBI directly. Is there any other way to map attributes in PowerBI directly ?
Solved! Go to Solution.
@varunaggarwal30,
You can use DAX to create a new table, there is an example for your reference.
NewTable = UNION(SELECTCOLUMNS(Stage,"col1",Stage[Column1],"col2",Stage[Column2],"col3",Stage[Column3]),SELECTCOLUMNS(sheet1,"col1",sheet1[Alias],"col2",sheet1[Column3],"col3",sheet1[id]),SELECTCOLUMNS(Report,"col1",Report[name],"col2",Report[Column10],"col3",Report[column1]))
Regards,
Lydia
@varunaggarwal30,
You can use DAX to create a new table, there is an example for your reference.
NewTable = UNION(SELECTCOLUMNS(Stage,"col1",Stage[Column1],"col2",Stage[Column2],"col3",Stage[Column3]),SELECTCOLUMNS(sheet1,"col1",sheet1[Alias],"col2",sheet1[Column3],"col3",sheet1[id]),SELECTCOLUMNS(Report,"col1",Report[name],"col2",Report[Column10],"col3",Report[column1]))
Regards,
Lydia
Is there any way we can have different column numbers and can add new columns from different sources. I tried add column option but it says union should have sam column
For Workaround I gave same columns in the all tables and kept them empty for non source table. Is there any cleaner way to do this?
@varunaggarwal30,
When using Union function, column number should be same from different tables.
Regards,
Lydia
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
118 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |