简体   繁体   中英

Power BI Visualize Many to Many

I currently have two tables: A "Send ID" table and an "Affiliation Table" each based on a column of customer IDs.

No columns have purely distinct values so I cannot create a many to one relationship.

I would like to visualize the Send IDs based on the Affiliations as shown here: Desired Output

I can work with either having the Send IDs repeat per affiliation in the new desired table or have them unique per affiliation - either way works with me.

Any help would be appreciated. Thank you

when you create Many To Many relationships like Here在此处输入图像描述

all you have to do next it's just visual this like you desire

在此处输入图像描述

hope I understand your question right

noyraz's solution in establishing a many to many relationship based on the customerID should suit your needs.

If you are required to find out where a customer appears in the affiliation table or sendID table, I highly recommend performing a full outer join in the query editor.

  1. Using the picture below, right click on any of the tables, and select reference.

Reference Screenshot

  1. Then rename the table if you like
  2. Click on Merge Queries
  3. In the drop down, select the other table you didnt reference, then click on both customerIDs
  4. select full other join.

Full Outer Join labled screenshot

  1. Expand the new table column
  2. deselect the ID if you like.

Expanding Column Screenshot

If there are occurrences where they don't appear (useful for sending and delivered tables), you can do visual level filters to see where either the Affiliation or SendID is null/blank.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM