March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Guys ,
Im hoping to get some help the resident experts here .
I have a datataset (currently in MS Excel) that looks like the following mock up . The real dataset has anything from none to 200 separate attributes and they appear in a random order.
Im hoping to transform this into a useable format and eventually create a unique list of Attributes and use it a slicer . I.e. Number of customers that have attribute "apple".
Any help would be appreciated.
Kam
Solved! Go to Solution.
@KamK I now understand what you are trying to do.
I would suggest the following:
Now that it is all running in rows, and you have got all the attributes, that means you would have all the attributes in one column?
@KamK if you are using Excel or Power BI and using Power Query, what you can do, is to split your attribute column by clicking on the column once in the Query Editor and selectings "Split By" and then for the delimeter select comma, and make sure that under split you leave it with the default "At each occurrence of the delimiter"
Hi @GilbertQ Thank you for your resposnse. The issue I have is that If I use text to columns / split by delimeter in either excel or Power BI my attributes will end up in different columns . based on current example customer Joe Bloggs would have apple =1 in column D but John Smith would have apple=1 in column E
This is the part im struggling with
Cheers
Kam
@KamK I now understand what you are trying to do.
I would suggest the following:
Now that it is all running in rows, and you have got all the attributes, that means you would have all the attributes in one column?
@GilbertQ Thank you for your quick responses . The value is always = 1 so thats probaly not an issue . This unpivot concept is new to me. I shall give it crack with my dummy data and see where it gets me . Thank you again for your help
regards
Kam
Just follow guavaq's solution, it should work well. Please post back if you still have problem on it.
Best Regards,
Herbert
@KamK glad to help out and if the =1 is not required then I would remove by using the "replace values" and replace it with "" or blank. Just to make it easier later.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |