This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hello everyone,
for a table I should group the values by max date. In particular, for each ID I should have the maximum date
| ID | Date |
| 0WO1i000001yEKeGAM | 12/03/2022 |
| 0WO1i000001yEKeGAM | 14/03/2022 |
| 0WO1i000001yEKeGAM | 15/03/2022 |
| 0WO1i000001yEKeGAM | 16/03/2022 |
| 0WO1i000001yEKeGAM | 17/03/2022 |
| 0WO1i000001yEKeGAM | 13/03/2022 |
| 0WO1i000001yEKeGAF | 16/03/2022 |
| 0WO1i000001yEKeGAF | 17/03/2022 |
| 0WO1i000001yEKeGAF | 13/03/2022 |
I expect a similar result
| ID | Date |
| 0WO1i000001yEKeGAM | 17/03/2022 |
| 0WO1i000001yEKeGAF | 17/03/2022 |
Thank you
Dom
Solved! Go to Solution.
Did I answer your question? Thanks to mark my post as a solution
Remove the extra closing square bracket .[Date]]
hi @Rally00 ,
i think the is :
ID Date
| 0WO1i000001yEKeGAM | 12/03/2022 | |
| 0WO1i000001yEKeGAM | 14/03/2022 | |
| 0WO1i000001yEKeGAM | 15/03/2022 | |
| 0WO1i000001yEKeGAM | 16/03/2022 | |
| 0WO1i000001yEKeGAM | 17/03/2022 | |
| 0WO1i000001yEKeGAM | 13/03/2022 | |
| 0WO1i000001yEKeGAF | 16/03/2022 | |
| 0WO1i000001yEKeGAF | 18/03/2022 | |
| 0WO1i000001yEKeGAF | 13/03/2022 |
and the the result was :
ID DATE
| 0WO1i000001yEKeGAM | 17/03/2022 00:00:00 | |
| 0WO1i000001yEKeGAF | 18/03/2022 00:00:00 |
hope that it can help 😄
Did I answer your question? Thanks to mark my post as a solution 😁
Thank you very much for the answer but where do I insert the function? 😁
.
Remove the extra closing square bracket .[Date]]
Fantastic!!!!
Thanks
Dom
Just select the earliest date option in the field section by clicking drop option you will see earliest date option
Thanks for the answer but sorry I didn't understand. I forgot to mention that the result of the max will then join with another table via the ID
Would you please upload the screenshot of the visulization pane of the right side
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 25 | |
| 20 | |
| 20 | |
| 20 | |
| 20 |