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
Hello,
I would like to get your help in the following matter. I have ID's with multiple dates. I need to return latest date for each of the ID's and compare the result with the specific row. If the result matches, I will use it as a filter, to make my inital table unique which will allow me to use it as a lookup table when I will create relationships later. Example of the problem:
The problem is that I am completely new to so called M language and can't really figure out how to solve this with M formulas/sytanx.
Solved! Go to Solution.
Sorry I was out of office
In Query Editor, you can use Group By Function to get the Max Dates for each ID
You could also use DAX calculated column
Max Date = CALCULATE ( MAX ( Table1[Date Hour and Minutes] ), ALLEXCEPT ( Table1, Table1[Application ID] ) )
Thanks @Zubair_Muhammad but I thought that it is better to do it in query mode because it is somehow less hardware demanding procedure. Am I wrong on this one?
Also, how can I filter out ture ones in data view so that the table becomes uniqe in relationship view. I did filter out the value but I still couldn't create relationship. See screens attached.
Sorry I was out of office
In Query Editor, you can use Group By Function to get the Max Dates for each ID
What if my dataset has more than 1 column apart from the ID (Group By), and I want to return the whole row? Is it possible?
Thank you!
Brilliant solution for this scenario!
Thanks,
Jeroen
Thank you @Zubair_Muhammad ! I actually stumbled upon this solution half an hour ago, but nontheless this seems to be the right solution!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |