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
Hi,
I have a table with these values and I need to filter the values with the example table (future), the result is column C
Actual:
Future:
Thanks!!
Xavi.
Solved! Go to Solution.
Hi @amitchandak
The solution is there Remove Duplicates and Keep the Last Record with Power Query - Excelerator BI
Regards!!!
Xavi
@XaviOV , a new column like
new column =
var _1 = countx(filter(Table, [ID_1] =earlier[ID_1] && [B] =0),[ID_1])+0
var _2 = MinX(filter(Table, [ID_1] =earlier[ID_1] ),[ID_0])
return
if([ID0] =_2 ,if(_1>0 0, 1),blank())
Hi @amitchandak ,
When I write the formula appear an error, I think that function earlier need something, it's possible?
Regards,
Xavi
@XaviOV , My mistake missing paranthesis
new column =
var _1 = countx(filter(Table, Table[ID_1] =earlier(Table[ID_1]) && [B] =0),[ID_1])+0
var _2 = MinX(filter(Table, [ID_1] =earlier(Table[ID_1]) ),[ID_0])
return
if([ID0] =_2 ,if(_1>0 0, 1),blank())
Hi @amitchandak
I applied the formula that you write and this is the result, in this case in the file with the number of ID0 471635 and the row of new column should appear number 0
Regards,
Xavi
@XaviOV ,Can you share sample data and sample output in table format?
Hi @amitchandak
The solution is there Remove Duplicates and Keep the Last Record with Power Query - Excelerator BI
Regards!!!
Xavi
@XaviOV , Hope you got the solution on that blog. Thanks for sharing.
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 |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |