Тёмный

Power Query MERGE Challenge Solution - DUPLICATES Alert 

Access Analytic
Подписаться 91 тыс.
Просмотров 22 тыс.
50% 1

⏬Expand to see solution files⏬
Merging tables in Power Query can be risky, so here's a way to add a warning to your output table
00:00 Intro
00:20 Recap
02:30 Solution
See my solution file and everyone's submissions
aasolutions.sharepoint.com/:f...
Connect with me
wyn.bio.link/
accessanalytic.com.au/
Did you know I've written a book "Power BI for the Excel Analyst"?
pbi.guide/book/

Хобби

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@andrewsinha2785
@andrewsinha2785 Год назад
Hi Wyn, This is very useful to me as I work with many ad-hoc spreadsheets that cannot always be checked for duplicates before loading into PQ. Thanks again. Andrew
@AccessAnalytic
@AccessAnalytic Год назад
You're welcome Andrew. Thanks for taking the time to leave a kind comment
@Soulenergy31
@Soulenergy31 Год назад
Thank u SenSei. I spent a whole morning trying to figure out how to fix it!!
@AccessAnalytic
@AccessAnalytic Год назад
You're welcome :)
@Mister_Bates
@Mister_Bates Год назад
Loved your use of Table.FromList (with the optional columns parameter) - I've been using #table() up until now, but the downside of that is having to provide values for each column ... 🙂
@AccessAnalytic
@AccessAnalytic Год назад
Cheers Steve
@alexbarbucristi
@alexbarbucristi Год назад
Thank you, always something new to learn from you!
@AccessAnalytic
@AccessAnalytic Год назад
Cheers. I appreciate you taking the time to let me know you found it useful
@shamafirdos8077
@shamafirdos8077 Год назад
i am a beginner with power query and this is very helpful. thankyou for sharing your solution
@AccessAnalytic
@AccessAnalytic Год назад
Glad it helps. Thanks for taking the time to leave a kind comment.
@kebincui
@kebincui Год назад
Fabulous. Thanks WYN👍
@AccessAnalytic
@AccessAnalytic Год назад
Cheers Kebin
@mandypaulissen
@mandypaulissen 8 месяцев назад
This one is absolutely a brilliant piece and hatdcore nerdy, but very useful!!!!🔥🔥🔥
@AccessAnalytic
@AccessAnalytic 8 месяцев назад
You’re welcome
@ryan_haigh
@ryan_haigh Год назад
This is a nice solution, will be interesting to try with larger datasets and multiple joins and whether it can use native query. One small thing, filtering 0 will falsely report rows with no matching value in the joined table (possible with left outer join) as duplicates, better to use > 1.
@AccessAnalytic
@AccessAnalytic Год назад
Yep, good call Ryan. I actually used > 1 in my final solution file that is linked in the comments. The 1 option might be a good solution for flagging duplicate OR missing dimension codes...🤔
@shreedharan.moorthy
@shreedharan.moorthy 11 месяцев назад
This is great. However not able to overcome duplicate, since my database is huge, and there is no unique identifier available. I merged using three different columns, which is po number, Sty code and colour codes. Each one having multiple rows based on colour code and quantity
@vijaykrishnan4151
@vijaykrishnan4151 Год назад
I see the merge showing me the first instance always just like vlookup in excel So i am not sure if this issue is fixed or am i looking in the wrong place? For eg if i have A as Apple and another entry with A as avacado, merge is always showing A as apple and its not doubling up after merge.
@AccessAnalytic
@AccessAnalytic Год назад
Maybe one A has a space before /after it or something different about it. Uppercase lower case can impact too
@shwetkumar1719
@shwetkumar1719 6 дней назад
Hello Sir, I have a historical table and Another table is Delta table which have rows that comes daily. now it wants to upsert that delta table match each row with historical table and when it matches then update it with delta rows and if match not found then insert the rows.
@AccessAnalytic
@AccessAnalytic 6 дней назад
Sounds more like something suitable to Fabric and a warehouse
@Bhavik_Khatri
@Bhavik_Khatri Год назад
Very elegant solution. Would you buffers for duplicate check to speed up the query?
@AccessAnalytic
@AccessAnalytic Год назад
I don't think so, although .buffer is a dark art. I don't think it fits here
@Bhavik_Khatri
@Bhavik_Khatri Год назад
@@AccessAnalyticI used Buffer before and I remember it's a list in memory for faster processing.
@AccessAnalytic
@AccessAnalytic Год назад
It will prevent multiple calls to the source. If I don’t think that applies here
@Bhavik_Khatri
@Bhavik_Khatri Год назад
@@AccessAnalytic Thank you for clarifying my query.
@mirrrvelll5164
@mirrrvelll5164 Год назад
Great video! But what if you wanna have that "alert" written on certain rows but still showing the rest of results?
@AccessAnalytic
@AccessAnalytic Год назад
Thanks. When adding the custom row count column you could wrap it in an IF > 1 then Alert else null
@mirrrvelll5164
@mirrrvelll5164 Год назад
@@AccessAnalytic You mean at the very end?
@AccessAnalytic
@AccessAnalytic Год назад
Around the 6:07 mark, wrap the row count formula in an if statement
@brianxyz
@brianxyz Год назад
What was the purpose of calculating the Max? I don't think you made use of this later.
@AccessAnalytic
@AccessAnalytic Год назад
Hi , at 13:40 in the final step I use MaxCount in the IF
@rameshnaidu7034
@rameshnaidu7034 Год назад
How to marge tow tables, base on customers latest visit date.
@AccessAnalytic
@AccessAnalytic Год назад
Sounds like something that requires some further explanation and example / screenshots. I recommend posting to techcommunity.microsoft.com/t5/microsoft-excel/ct-p/Excel_Cat?WT.mc_id=M365-MVP-5002589 or community.powerbi.com/t5/Power-Query/bd-p/power-bi-services
@normandtousignant1754
@normandtousignant1754 Год назад
Wow clever!
@AccessAnalytic
@AccessAnalytic Год назад
Easy when you know how ! 😆
@ohdjrp4
@ohdjrp4 Год назад
Spins in my head, really😂😂😂 but I think it's great!
@AccessAnalytic
@AccessAnalytic Год назад
Cheers Orlando
@TheLaopi
@TheLaopi Год назад
Wouahhhhh
@AccessAnalytic
@AccessAnalytic Год назад
😆
@GeertDelmulle
@GeertDelmulle Год назад
Nice solution, albeit a bit predictable. And yet, it’s the unexpected that’s the most fun: those extra arguments in Table.FromList. BTW, here’s how I make intellisense work: before I start typing the name of a function, I type an opening parenthesis (“(“), then arrow left and start typing the function. Then it works perfectly. Give it a try. :-) Cheers.
@AccessAnalytic
@AccessAnalytic Год назад
Nice Geert
@AccessAnalytic
@AccessAnalytic Год назад
It's amazing how many different approaches people took in their submissions. Glad mine was logical.
@GeertDelmulle
@GeertDelmulle Год назад
@@AccessAnalytic What I meant to say was: this challenge was not the most difficult one to date. BTW: this challenge did show (again) the versatility of Power Query: Power Pivot could not handle this, needing a unique primary key in the dimension table. Also, merging tables based on multiple columns is something PP can’t do. In that sense PQ is the most robust. Yet another reason why we like PQ so much. :-)
@AccessAnalytic
@AccessAnalytic Год назад
Indeed!
Далее
3 Essential Excel skills for the data analyst
18:02
Просмотров 1,5 млн
Документы для озокомления😂
00:24
Excel How To Group Rows with Power Query
4:12
Просмотров 3,2 тыс.
PQ Challenge Splits and Lists
17:56
Просмотров 12 тыс.
РЫБАЛКА ДОМА
0:17
Просмотров 16 млн