98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Power BI training and help » Creating a new table from one column to make a M:M relationship
Creating a new table from one column to make a M:M relationship
Resolved · Low Priority · Version 365
Grazi has attended:
Power BI Modelling, Visualisation and Publishing course
Creating a new table from one column to make a M:M relationship
Hi all,
Another issue, thanks for your help.
I have one column / field in my main table that's a comma list value - for example:
Person ID
Employment Status
Employment Status is either one value or 2: "employed, part time"
It seems like it's up to 2 values, I can't see more than 2.
If I just split the column creating employment status 1, employment status 2; the report is not right.
Do I need to create a table for employment status, and then do a M:M table in the middle? Or is there a way round using the 2 columns, but reporting as 1?
In the report I just need the count for each value:
Employed
Part time
Unemployed
The total would be higher than the total number of people since one person can have more than one value, but that's ok.
Any ideas?
Thank you so much,
Grazi
RE: Creating a new table from one column to make a M:M relations
Hi Grazi,
Thank you for the forum question.
If I understand you right you can get what you want by the measure:
=Counta(main table name[employment status 1])+Counta(main table name[employment status 2])
If you split the column by delimiter in the query editor.
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Wed 27 Sep 2023: Automatically marked as resolved.
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Power BI tip:Data Model ShortcutsCtrl + Shift + L: Create a relationship between tables. |