Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello!
I have data that looks like this:
I want to pivot it to look like this:
I.e. "completed date"'s become the values for the rows of protocol id's and columns of milestones.
As you can see, it pretty much works. Problem is, every once and a while I have duplicates like this:
Where for a specific combination of protocol_id and milestone, I'll have two different dates. I can clean up my data for now, but knowing the data source, it'll happen again.
So I was thinking one way to handle this might be to 'tag' them with indexes, maybe like this:
So that when I pivot it, I'll get a few more columns. I may not use ALL of the columns, but at least I wont have errors.
I tried to follow this article to do so: https://excelguru.ca/label-duplicates-with-power-query/
but right when I got to the
I wonder if it has something to do with the way i grouped (by two variables). Any ideas or suggestions?
Solved! Go to Solution.
I think that's just telling you it doesn't know what [Data] is in that line.
Just from observation, it looks like the formula has been entered directly in the formula bar instead of in the Add Custom Column dialog. I'm sure it will get wrapped with a reference to the previous query step if you do that.
I think that's just telling you it doesn't know what [Data] is in that line.
Just from observation, it looks like the formula has been entered directly in the formula bar instead of in the Add Custom Column dialog. I'm sure it will get wrapped with a reference to the previous query step if you do that.
Lol. It was as simple as that, thank you.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
52 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |