Forum Discussion
Count comma delimited data
- 8 years ago
Hi,
I do not have a fancy way to solve this. All i can suggest is that we create two tables fro your source as shown below. I have done so by using the Split column > By rows feature of Power Query.
- 8 years ago
Hi,
Do not split the data by columns. SPlit it by rows as suggested in my previous post.
Hi,
I do not have a fancy way to solve this. All i can suggest is that we create two tables fro your source as shown below. I have done so by using the Split column > By rows feature of Power Query.
- WakeTurbulence8 years agoFrequent Visitor
Thanks Ashish,
I was hoping to avoid this though. Does anyone else have any thoughts?
- WakeTurbulence8 years agoFrequent Visitor
I have used power query to split the column into several columns so now i have columns: `type.1` `type.2``type.3` etc. in table 1. These columns all relate to the column `Type` in table 2. However, when i create relationships from each of the columns in table 1 to column 2 only the first one I create is active and the remainder are inactive. As a result, power BI is only counting the active relationship in its output. How can i make it count all of them as one statistic?
In addition to the answer above, I would still prefer to leave this column unsplit and somehow count each report entered for one occurrence. for the most part there will only be 3 - 4 report types per occurrence but on the rare occasion there could be upwards of 20 reports for one occurrence. Obviously having 20 columns just for the off chance that this occurs is not ideal but if I limit the amount of columns the origin column is split in to say 10 then I am possibly loosing out on data.
- Ashish_Mathur8 years agoSuper User
Hi,
Please show your actual data and your expected result.
- Sinuche1 year agoNew Member
When I tried this solution it made me switch to import mode, instead I create a DAX measure and lookup tables to seperate the comma seperated values.