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
TheHerkules
Regular Visitor

Create a visual using multiple tables?

Hi all!

 

In my case, I have to create a visual showing the content of multiple, unconnected tables. How do I have to write dataViewMappings to achieve that?

 

For simplicity, let's assume the number of tables and the number and kind of columns is fixed (e.g. take a sales timeline from table A, customer billing dates from table B and show them on a common time axis).

 

Hope for help,

 

. Jörg

1 ACCEPTED SOLUTION

@TheHerkules,

 

You may use ADDCOLUMNS Function to add a calculated column to distinguish data from multiple tables. As for dataViewMappings, it is also a great challenge to me.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@TheHerkules,

 

You may consider using UNION Function in DAX to create a new table.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft thank you for your quick response.

 

Does it mean accessing multiple tables is not possible?

 

In case of a union, how can I distinguish which value comes from where when displaying the two time axes? Can I do a union even in case the tables have no columns in common?

How would the dataViewMappings would look like in that case? Categorial? Table? Matrix? (BTW, is there some documentation about 'matrix' somewhere?)

 

Thank you again,

 

. Jörg

 

 

@TheHerkules,

 

You may use ADDCOLUMNS Function to add a calculated column to distinguish data from multiple tables. As for dataViewMappings, it is also a great challenge to me.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.