Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I am new to power bi and would require your help to sort out below issue which i am facing.
basically i am taking three columns into consideration as below
Question: I would like to remove duplicate values from above table based on conditon "
Equal value for "Time" ,"ID" and Absolute difference in "Time spent" is lower or equal than 1"
as you can see in the image Rows highlighted falls in this category.
would like to get these below rows removed based upon condition.
And final solution should look like this:
I am able to perform this in excel by making us of a fourth column with formulae "=IF(AND(A3=A2,B3=B2,ABS(F3-F2)<1),"problem",0) " and then filtering out the rows marked as probelm. Please help!!
Regards
Mahi
Solved! Go to Solution.
Hi@Mahi1989
You use Merge Queries function in Edit Queries.
You can try to do it follow my steps:
Step 1:
Duplicate the data table as below
Step 2:
Add index column for two table
Basic table start from 1 and increment is 1
Duplicate table start from 0 and increment is 1
Step 3:
Merge two table
Step 4:
Expand the table and apply &close
Step 5:
Add column
Column = IF(Table4[Time]=Table4[Added Index.Time]&&Table4[ID]=Table4[Added Index.ID]&&ABS(Table4[Time Spent]-Table4[Added Index.Time Spent])<1,1,2)
Step 6:
Filter the table
Here is demo ,please try it.
EXCEL https://www.dropbox.com/s/gle4648a4c81kro/example.xlsx?dl=0
Best Regards,
Lin
Hi@Mahi1989
You use Merge Queries function in Edit Queries.
You can try to do it follow my steps:
Step 1:
Duplicate the data table as below
Step 2:
Add index column for two table
Basic table start from 1 and increment is 1
Duplicate table start from 0 and increment is 1
Step 3:
Merge two table
Step 4:
Expand the table and apply &close
Step 5:
Add column
Column = IF(Table4[Time]=Table4[Added Index.Time]&&Table4[ID]=Table4[Added Index.ID]&&ABS(Table4[Time Spent]-Table4[Added Index.Time Spent])<1,1,2)
Step 6:
Filter the table
Here is demo ,please try it.
EXCEL https://www.dropbox.com/s/gle4648a4c81kro/example.xlsx?dl=0
Best Regards,
Lin
Hi Lin,
Thanks for saving my day it worked, cheers mate 🙂
Regards
Sumit