Forum Discussion
Need Help with data
- Anonymous1 year ago
Thanks for the reply from parry2k , please allow me to provide another insight:
Hi Mahmoud23 ,I couldn't open your pbix link, I created my own relevant sample data:
Here are the steps you can follow:
1. Duplicate the table in Power Query, delete columns for splitting into multiple columns, select all columns for Unpivot Columns.
Select [track_name] -- Remove
Table_copy – select [act_name] – Split column – By Delimiter.
Select all columns – Unpivot Columns.
Select [Attribute] – Remove.
Select [Value] – Duplicate Column.
2. Create measure.
Measure = var _select=SELECTEDVALUE('Table'[track_name]) var _art=MAXX(FILTER(ALL('Table'),'Table'[track_name]=_select),[art_name]) var _table= FILTER('Table_copy',CONTAINSSTRING(_art,[Value])=TRUE()) var _table2= ADDCOLUMNS( _table,"Count",COUNTX(FILTER(ALL('Table'),CONTAINSSTRING('Table'[art_name],[Value])=TRUE()),[track_name])) return CONCATENATEX(_table2,[Value]&"-"&[Count]," ")3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Help me please!
I have a data table from Spotify that contains a column recording the artists & another the number of artists, and some cells have more than one artist. I want a function or method to create a card in power bi that shows the correct total number of artists and is also interactive when I use filters. For example, if I select a song with three artists, the card should display three.
Can I create a separate table and how do I link it to the original table? When I created the relationship, the one-to-many setup is correct, but the card does not interact.
I provided a link to the full data.
& in your opinion, what are the best additional modifications i can make to this data to extract good results that i can use in a power bi report.