Extract Data As per Creteria with power Query

ExcelGuru · Intermediate ·📊 Data Analytics & Business Intelligence ·4y ago

Key Takeaways

Extracts data as per criteria using power query in Excel

Full Transcript

and these many days i was busy with my schedule that is i'm learning power query powered by word power bi and tableau for that reason i'm unable to take any sort of sessions and here uh i like to share a query and this data is a dummy data it's not an original data it's a dummy data so i like to show you two things to extract a gender as per the criteria that is male if i enter female it should automatically change only the female names with two methods one method is array formula and another method is with power query these two methods i'm going to explain you okay so if you have any doubts please let me know in the description sorry in the comment box okay in description i am going to share my telegram channel link if anybody wants to join just click over there and directly you will go to telegram and you can join directly okay and uh there is a captcha or something like uh some security after joining you have to click then only you can able to join otherwise you are it's not possible to join it it is having only two to three minutes time within two to three minutes time you have to click otherwise it will not accept you will be kicked off from the group now here first of all i'll show you with the formula okay actually you have to extract only the names which is having the gender mail okay here i will show you okay simply i'm i'd like to show you now two methods i said two methods okay this is the first method first of all we have to check how many males are there because there are so many duplicates out there so we have to check how many are there so by using if i will check how many are these f4 equal to male okay i'm also feeling this one and if it is true see this is the logical test f9 wherever it finds the mail it will pick up the true and remaining are all falses now i want one two three this is array constrain so i like to pick up like this so what it will give it will give from 3 to 10 sorry 3 to 9 okay so i want from one two so what i'll do row of d3 f4 now check whether so it will give 0 to 8 by pressing f9 0 to 6 sorry 0 to 6 plus one f9 sorry here f9 so totally seven records are there okay total seven records are there one two three four five six seven okay so it will pick up the 70 code okay this is the first thing and i don't need the faults okay i'm closing that one also right if i press f9 c wherever you find the true it will see what i'll do i'll explain you logical test first of all what i'll do i presented just logical test f9 and values through f9 so what it will do it will pick up the positions wherever it finds the true here true here true here true two two remaining are all falses right so what i'll do i like to pick up the smallest one first smallest one first small and if i press one it will pick up the first to smallest if i press two it will pick up the second smallest right so what i'll do instead of doing like that or what i'll do i'll use the rows function where it i lock this row and i will not lock the this one so it will pick up the first to see first of all i will show you how it will pick up rows of the formula in j3 j dollar three colon j3 okay so it will pick up like this if i show you this one what will do it will check all those things so like that wise it will do like this this one sorry i'll delete this one and now what i'll do just i want the names right i want the names this is very important see guys this is very very important because i am showing the power query also okay that what is the index index part array is the names we need f4 comma ctrl shift and enter wherever you find the name see three main four male five male six male see if i change male to female so automatically change one two seven right and if you want to read out these errors what you will do just go to here if errors if you find any error in this function show me the blank as run this formula as it is right this is one two seven okay now i will show you another method with the power query so before going to the power query you have to convert these two data into a table format by using ctrl t and don't forget that the header should be in the bold otherwise it will consider it's a part of a data but not the header so you have to convert the headers in into a bold before converting into a table so i'll press ctrl t yes here my table has headers okay this is converted and here also control t enters so it also converted so i will name this table like a data data enters and here as table two name is gender enter okay table one table two these two things are there now i'll take some time to go to the power query so please wait for a while the shortcut key is alt a p t all right here all alt plus a plus b plus t okay this is a shortcut key too uh go to the power query and the cursor should be in the table right now the shortcut is alt apt it takes some time so please wait and if you have any doubts you can post in the comment box i don't know why the system is very slow today actually very fast so please be patient it has to convert here you can see loading and right here my mother are also having some problem for that reason sorry for that guys see it's taking much time actually this is a problem with my excel but it will go to power query very fast within span of seconds but uh my action is having some problem i think so for that reason it's not able to go too fast now are you able to see that screen guys are able to screen screen my screen [Music] no only says one screen [Music] on the screen i like to share another screen this one also now are you able to see because the air is sharing only one screen for that reason it's already named with data so what i'll do just i'll go back to the excel close and load two on the create a connection that's it okay just create a connection wait a minute only create a connection add this to data model lower that's it you're not supposed to change any sort of things and another date also we need this one that is a criteria so what you will do just click on wait a minute again you're showing very slow i'm clicking on this okay i said now what is the problem with my mouse you know why there's a problem with my mouse and all those things please sorry for that yes actually there is a problem with my data for that reason and now again i have to convert this into a power query alt a p t shortcut key to convert go to power query that is power query editors i think someone has sent the message but uh sorry uh i can't reply to that message and here simply again close and load already named gender here so close and load home close and load to connection this one also a connection wait a minute it's loading only create a connection add these two data model load wait a minute guys it has to be these two things are only okay it's loaded actually it should be a connection not loaded actually i don't know why my mouse is not working since so many days again how to go i think so actually it is not a loaded it should be a connection only the connection i have not checked properly i think so i have to cut it before going to that see i don't know why it's taking much time to load it's sample small data now but that's not a big date also small data then also it has given some problem let's try with this only like this only let's try it data new query combine query merge let's check it out with this like this actually both things should be a connection but i will load it directly let's see it will work or not directly i'm taking a new query to merge those things see here it is so you need the this one you have to match the gender okay you have to pick up this data first of all you have to pick up the data and click on the gender here also the same thing here you have to pick up the gender and click on this okay so it will give you the reply the collection matches of three of seven rows from the first table so three matches are there one two and three three seven two one okay let's okay if you have any problem please ask me in the comment box so here it is sorry now here is a very important thing you have to do it and if you have any doubts again and again i'm repeating if you have any doubts ask me in the comment box i don't need this table first of all first of all click on this nothing is there that thing is there see i remove the errors i removed the errors this thing only because i already loaded for that today it is showing like this actually it should not show like this okay so i remove this one this one is working over with this remove now close and load two now i will place some adultery automatically it will take the new sweet i think so it will take already a new sheet see all females are there one second all females are there i have to zoom it all females are the name one name two name seven name one name two and name seven and if i change female to male but instantly it will change because it's a formula always a dynamic for that reason instantly it will change but not the power query now what you have to do to change the power query just go to see it's not changed yet see go to data and press on refresh all now it will refresh see here what will happen by one two one two three four four electric force actually i have to say only reflect some uh mud query but i replaced all so it takes some time to refresh some problem with my excel i don't know why it is happening to me for the opinion is taking much time to refresh and until then we'll go to try to go to your control page up click done what happened it has to change actually wait a minute it has to change actually i don't know what happened to here it's showing zero here again i'll do refresh yo you what happened i don't know the procedure is correct but here's some problem with this everything is right so remember corresponding refresh it has to come this one also some problem with this i don't know some some problem with this but the procedure is correct guys the procedure is correct but i don't know some problem with my excel okay if anybody knows how to uh justify this problem please let me know and this procedure is correct only thank you guys thanks for your support have a nice day

Original Description

https://t.me/+0_gXCXtEZngxYWM1
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from ExcelGuru · ExcelGuru · 18 of 60

1 Total Sumproduct Session By Excel Expert Mr.Sanjeev kaushik
Total Sumproduct Session By Excel Expert Mr.Sanjeev kaushik
ExcelGuru
2 Uses and Technics of Transpose in 3 Methods
Uses and Technics of Transpose in 3 Methods
ExcelGuru
3 Query Solved ExcelExpert
Query Solved ExcelExpert
ExcelGuru
4 counting numbers and text with creteria lenngth
counting numbers and text with creteria lenngth
ExcelGuru
5 For Reverse Looking Fing age By Using Database Function
For Reverse Looking Fing age By Using Database Function
ExcelGuru
6 MIS INTERVIEW QUESTION EXTRACTING FIRST AND LAST NAME WHICH IS NOT HAVING DELIMETER
MIS INTERVIEW QUESTION EXTRACTING FIRST AND LAST NAME WHICH IS NOT HAVING DELIMETER
ExcelGuru
7 finding Unique count of sales between Dates
finding Unique count of sales between Dates
ExcelGuru
8 counting 2 lookup values as per dupicates
counting 2 lookup values as per dupicates
ExcelGuru
9 Reverse Vlookup to get DOB
Reverse Vlookup to get DOB
ExcelGuru
10 17-04-2022 Sridevi Marriage Celebrations
17-04-2022 Sridevi Marriage Celebrations
ExcelGuru
11 INTERVIEW QUERIES WITH ANOTHER QUERY
INTERVIEW QUERIES WITH ANOTHER QUERY
ExcelGuru
12 finding maximum sales of product when duplicate products
finding maximum sales of product when duplicate products
ExcelGuru
13 QUERY ASKED IN GROUP
QUERY ASKED IN GROUP
ExcelGuru
14 MIS TEST WITH AMAZING SOLUTION BY JR.BILLGATES(ANAND)
MIS TEST WITH AMAZING SOLUTION BY JR.BILLGATES(ANAND)
ExcelGuru
15 query to count not saled products after saled products
query to count not saled products after saled products
ExcelGuru
16 Explanation about birla mandir at Hyderabad
Explanation about birla mandir at Hyderabad
ExcelGuru
17 counting specific weekday in between dates
counting specific weekday in between dates
ExcelGuru
Extract Data As per Creteria with power Query
Extract Data As per Creteria with power Query
ExcelGuru
19 Extracting data as per creteria in different sheets
Extracting data as per creteria in different sheets
ExcelGuru
20 SOLUTION FOR INPHOSYS MIS-1(1-4)
SOLUTION FOR INPHOSYS MIS-1(1-4)
ExcelGuru
21 solution for inphosis mis 2(12-13)
solution for inphosis mis 2(12-13)
ExcelGuru
22 INPHOSIS MIS SOLUTION-3(5-10)
INPHOSIS MIS SOLUTION-3(5-10)
ExcelGuru
23 LOGICAL MIS INPHOSIS-4(17-18)
LOGICAL MIS INPHOSIS-4(17-18)
ExcelGuru
24 MIS INTERVIEW QUESTION
MIS INTERVIEW QUESTION
ExcelGuru
25 MIS INPHOSIS -5(19-21)
MIS INPHOSIS -5(19-21)
ExcelGuru
26 MIS INPHOSIS - 6(23-25)
MIS INPHOSIS - 6(23-25)
ExcelGuru
27 extracting pin codes or number from text string
extracting pin codes or number from text string
ExcelGuru
28 finding maximum sales in one value
finding maximum sales in one value
ExcelGuru
29 finding how many months are there between months
finding how many months are there between months
ExcelGuru
30 Quarter sales by month
Quarter sales by month
ExcelGuru
31 Finding rate with 2 conditions by using vlookup
Finding rate with 2 conditions by using vlookup
ExcelGuru
32 how to find max length word from text string
how to find max length word from text string
ExcelGuru
33 Group query To find sales and Quantity With 2 conditions by using VLOOKUP
Group query To find sales and Quantity With 2 conditions by using VLOOKUP
ExcelGuru
34 my angels birthday celebrations
my angels birthday celebrations
ExcelGuru
35 Group Query Adding total sales when it is having random delimiter like inches,kgs,Ton
Group Query Adding total sales when it is having random delimiter like inches,kgs,Ton
ExcelGuru
36 Seperating first and last Name by space using function
Seperating first and last Name by space using function
ExcelGuru
37 Finding Total Goals from different tables Team members
Finding Total Goals from different tables Team members
ExcelGuru
38 Group Query To Extract Team members Names
Group Query To Extract Team members Names
ExcelGuru
39 Extracting data in a single column
Extracting data in a single column
ExcelGuru
40 converting one column data into table interview question
converting one column data into table interview question
ExcelGuru
41 MIS INTERVIEW QUESTION-100
MIS INTERVIEW QUESTION-100
ExcelGuru
42 MIS INTERVIEW QUESTION -101 FINDING VALUE AS PER CHARACTERS LENGTH BY VLOOKUP
MIS INTERVIEW QUESTION -101 FINDING VALUE AS PER CHARACTERS LENGTH BY VLOOKUP
ExcelGuru
43 chi.shreyansh
chi.shreyansh
ExcelGuru
44 MIS INTERVIEW QUESTION-102(SORT BY LENGTH)
MIS INTERVIEW QUESTION-102(SORT BY LENGTH)
ExcelGuru
45 query to extract last words from sentence
query to extract last words from sentence
ExcelGuru
46 MIS INTERVIEW -103(EXTRACT MAXIMUM CHARACTERS WORD IN A CELL)
MIS INTERVIEW -103(EXTRACT MAXIMUM CHARACTERS WORD IN A CELL)
ExcelGuru
47 group query
group query
ExcelGuru
48 without len function count of characters
without len function count of characters
ExcelGuru
49 MIS QUERY
MIS QUERY
ExcelGuru
50 mis interview questions part -1
mis interview questions part -1
ExcelGuru
51 Real MIS Query-1
Real MIS Query-1
ExcelGuru
52 real mis interview questions-1
real mis interview questions-1
ExcelGuru
53 finding the value as per length of characters
finding the value as per length of characters
ExcelGuru
54 real mis -2
real mis -2
ExcelGuru
55 real MIS -3
real MIS -3
ExcelGuru
56 REAL MIS -4(PART A)
REAL MIS -4(PART A)
ExcelGuru
57 group query
group query
ExcelGuru
58 tech mahindra mis
tech mahindra mis
ExcelGuru
59 courier company MIS
courier company MIS
ExcelGuru
60 tech Mahindra (UPDATED)
tech Mahindra (UPDATED)
ExcelGuru

Related AI Lessons

The Attention Economy: Your Attention Is Worth More Than Gold
Learn how the attention economy works and why your focus is a valuable resource in the digital age
Medium · Data Science
What I Learned Building a Tableau Dashboard for Deloitte’s Data Analytics Simulation
Learn how to build a Tableau dashboard for data analytics by exploring a real-world project for Deloitte's simulation, focusing on machine downtime and pay equity
Medium · Data Science
Six Months, 9,541 Restaurant Development Records, and What the Data Actually Says
Analyzing 9,541 restaurant development records reveals insights into the industry, showing what the data actually says about trends and patterns
Medium · Data Science
CRM Analitiği ile Müşteri Değerini Anlamak: RFM, CLTV ve Predictive CLTV Rehberi
Learn how to use CRM analytics to understand customer value with RFM, CLTV, and Predictive CLTV
Medium · Data Science
Up next
Salesforce Flow New Features (Summer '26) | Open Record, URL & Show Toast Messages
AITECHONE
Watch →