Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
@parry2k @Erokor @MarceloVieira
Okay, let’s try this again. Apologies to the users that helped me yesterday, as I did not prepare all the information.
I have a table called “Master Login” which holds the primary key, or the 1 side of the relationship. Within this table, there is a column called “Email Domain”.
I then have another table called “Fiscal ’22 Lookup” which has the many (*) side of a relationship.
I would like to pull the email domains FROM “Master Login” into a new column INTO the “Fiscal ’22 Lookup” table.
After that is complete, I would like to visualize it as seen above.
Then, I would like to make a new table that only include the “email domain” and have a count on the right-hand side of it that counts how many occurrences the domain appears in the “Fiscal ’22 Lookup” table.
Thank you,
Cam
@chonchar not sure why we are making it super complicated or I'm missing something:
In visual, just use domain from the master table and countrows of fact table (add as a measure) and that should do it.
Number of Rows = COUNTROWS ( TableFact )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Thanks for the update. To start with your table "Master Login" cannot possibly be on the 1 side of a 1 to many, as it has duplicates in the column "Email Domain"
@Erokor It is on the 1 side of a relationship. The Primary Key is the User ID, which is unique. Multiple users can have the same email domain.
Thank you for the feedback. This wasn't apparent in the first screenshot - would you have multiple records for the user? I'm going to assume not in order to give you a timely response:
In PowerQuery, If you were to use the "Merge" function on the User ID column in the "Fiscal 2022" table and select the the User ID column in the "Master Login" Table (containing a column called User ID not pictured in your screenshot) and then "Expand" the resulting column, it would bring in any selected columns you choose from the "Master Login" table Beware, if you have duplicate User ID's in the Master Login table, you will get multiple records returned in the Fiscal 2022 table.
Following this - in the canvas of the report - you'll need to simply drag the Domain name into a Matrix or table visual. Then you'll either want to write a measure that counts the rows of the newly combined domain table. COUNTROWS(NewTable). and place it in the same visual, or simply drag an item in from that table and change the aggregation to COUNT.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 63 | |
| 62 | |
| 42 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 118 | |
| 106 | |
| 38 | |
| 28 | |
| 27 |