Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I have been struggling with the same issues for a few days in different forms. I can't wrap my head around it 😕
In my data set there is an issue with a specific column that shows a time stamp. I need to show the max date and the corresponding milestone associated with it, but it happens that the same milestones can be associated with twice the same timestamp. This generates mistakes when I build measures for other values. I need to get unique values.
For example, our customer service might push one entry in "Documents reviewed" on the 6th of January and then push it in "Application closed" on the same day. This generates some issues on the side of data quality.
In the following example I have two ids for which the problem happens. It should show a total of 2 rows (where Index Milestones =6), not a total of 6 rows. However it is impossible to get rid of duplicates by working on the id column alone, since it would take away some other rows which don't have this issue. What I need on this case is the latest entry on the 10.09 and 27.09, knowing that the second way of filtering should take the max of "Index Milestones" if the date stays the same.
To get to this result I used the function group by id+ added max date in the same way, then filtered on max date= last change date.
I thought I could work in a similar way for the max of the index milestones column...not the case 😕
There must be a way to get rid of these duplicates in Power Query. Does anyone have an input on how to fix this?
Thanks,
Pauline.
Solved! Go to Solution.
You can do this with grouping your data on the first column, keeping all rows, and then using the Table.Max or Table.MaxN functions. Your data were shared as an image and I could not easily extract them, or I would done it and shared the M code needed. If you get stuck, please @ mention me in your reply and include the data in a copy-paste-able format.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You can do this with grouping your data on the first column, keeping all rows, and then using the Table.Max or Table.MaxN functions. Your data were shared as an image and I could not easily extract them, or I would done it and shared the M code needed. If you get stuck, please @ mention me in your reply and include the data in a copy-paste-able format.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.