Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I need to add a Column Like in Example. (in Power BI Query)
Solved! Go to Solution.
Hello
Sorry abouth the delay.
My approach to you:
if [Date] = List.Max(#"Changed Type"[Date]) then [ID] else null
the ideia is to find do max of the date e the return de respective ID ,
after you make a Fill Up,
I hope that's it
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Best Regards
BC
Best regards
Bruno Costa | Super User
Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!!
Take a look at the blog: PBI Portugal
Hi @seenai
Download this PBIX file with the following code
As an alternative, you can do this in 1 line without needing to fill up:
#"Changed Type"[#"Base-HardenerCode"]{List.Count(#"Changed Type"[#"Base-HardenerCode"])-1}
You just need to change the reference to the previous step from #"Changed Type" to whatever the step name is before where you insert this line into your code.
Regards
Phil
Proud to be a Super User!
Hi, @seenai
Could you please tell me whether your problem has been solved?
For now, there is no content of description in the thread. If you still need help, please share more details to us.
Best Regards,
Community Support Team _ Eason
Hi @seenai
Download this PBIX file with the following code
As an alternative, you can do this in 1 line without needing to fill up:
#"Changed Type"[#"Base-HardenerCode"]{List.Count(#"Changed Type"[#"Base-HardenerCode"])-1}
You just need to change the reference to the previous step from #"Changed Type" to whatever the step name is before where you insert this line into your code.
Regards
Phil
Proud to be a Super User!
It works as required. Great Support.
Thank You Very much.
Hello,
From your image i see that "Base-HardenerCode" is text, is there a date field to control the most recente?
Best regards
BC
Best regards
Bruno Costa | Super User
Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!!
Take a look at the blog: PBI Portugal
Hi ,
Help me with formula to add Custom Column, Like in Example. (in Power BI Query)
Hello
Sorry abouth the delay.
My approach to you:
if [Date] = List.Max(#"Changed Type"[Date]) then [ID] else null
the ideia is to find do max of the date e the return de respective ID ,
after you make a Fill Up,
I hope that's it
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Best Regards
BC
Best regards
Bruno Costa | Super User
Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!!
Take a look at the blog: PBI Portugal