Replace Values Based on Condition (in a Single Step) in Power Query

  Рет қаралды 122,165

BI Gorilla

BI Gorilla

Күн бұрын

Пікірлер: 152
@KaioVilasBoas-j2i
@KaioVilasBoas-j2i 8 ай бұрын
Man! You saved me when ChatGPT and Copilot could not help, even in a task that seemed to be so simple. Very thanks!
@AP-eb8hd
@AP-eb8hd 20 күн бұрын
chatgpt and copilot are useless for these kind of things..,, it helps people just start with basic things.
@mommalongleggs7896
@mommalongleggs7896 4 күн бұрын
Thank you so much for this video. This was the only source I found to help me solve my problem. One thing I did learn...when you are doing the each if line to make the replacement, the value you are replacing cannot be null. I added a step prior to replace all my nulls with "No Value" and then your solution worked like a charm!
@xyz123770
@xyz123770 6 ай бұрын
Thanks a ton for explaining that so clearly. I especially appreciate the elegance of doing it all in one step. Bravo!
@reachmaqsood
@reachmaqsood Ай бұрын
So far the best lesson on power query with all the details to small practical tricks.
@adyelencu
@adyelencu 7 ай бұрын
Man, you just helped me with this week's work. So nicely explained, cheers!
@RaisingBrows
@RaisingBrows 3 жыл бұрын
This video was so helpful! Exactly what I was looking for. I used criteria based on multiple fields for different scenarios. I used Each only once before the start of the if statements and it worked perfectly. Thank you!!!
@BIGorilla
@BIGorilla Жыл бұрын
Happy to read that! :)
@milossubak8909
@milossubak8909 2 жыл бұрын
Simple, elegant, and well explained. Thanks!
@BIGorilla
@BIGorilla 2 жыл бұрын
Thank you!
@CAKimberlyLewis
@CAKimberlyLewis 2 жыл бұрын
@BIGorilla comes through again (and again and again)! Thank you SO much!
@BIGorilla
@BIGorilla 2 жыл бұрын
🚀 Thanks Kimberly! glad to help
@walkurey
@walkurey Жыл бұрын
Brilliant mate, this helped me so much. I have googled so much about this subject and couldn't find an easy way to do this, untill I stumbled upon your tutorial. Thanks!
@BIGorilla
@BIGorilla Жыл бұрын
Thanks Esther. There's an accompanying article where I explain some: gorilla.bi/power-query/replace-values/
@carolineabrahamsson9107
@carolineabrahamsson9107 2 жыл бұрын
Thank you for a great explanation and solution!
@lubomirjagersky7327
@lubomirjagersky7327 2 жыл бұрын
Helpful and very good explained. Thank you.
@BIGorilla
@BIGorilla 2 жыл бұрын
Thank you !
@balrajvirdee1087
@balrajvirdee1087 7 ай бұрын
Thanks so much, this is an amazing tip, very useful, was looking how to do this for ages. 👍🏽👍🏽👍🏽👍🏽👍🏽👍🏽
@moyura2
@moyura2 2 жыл бұрын
Good explanation make it easy to understand, thanks for sharing.
@yasinwarsame3282
@yasinwarsame3282 3 жыл бұрын
I am so pleased with how you explain and teach! Thank you! I have subscribed and liked the video!
@BIGorilla
@BIGorilla 3 жыл бұрын
WOW WOW WOWWW. Thank you so much for the support. It is highly appreciated. Thanks for coming to my channel! Rick
@ahmadahmadsalim7023
@ahmadahmadsalim7023 Жыл бұрын
This was really helpful. Thank you so much.
@users-9pR2s7
@users-9pR2s7 3 ай бұрын
That was exactly what I was looking for! Thank you 🙏
@philipedesouzasantos1201
@philipedesouzasantos1201 2 жыл бұрын
Thank you mate, it was a big help to resolve an annoying bad clusterization problem (and ofc it saved me a lot of hours of research)
@BIGorilla
@BIGorilla 2 жыл бұрын
Ofcourse, and thanks for tuning in to the channel. Great to hear you managed to solve your clusterization problem. ^^ Rick
@PeteMackay
@PeteMackay 2 жыл бұрын
Thanks, great explanation and very helpful.
@dercip8087
@dercip8087 Ай бұрын
Really helpful, Thank you!
@tantewalla
@tantewalla 2 жыл бұрын
This is BEAUTIFUL! Thanks dude, this vid helped a bunch!
@BIGorilla
@BIGorilla 2 жыл бұрын
great!
@smahmudmobin
@smahmudmobin Жыл бұрын
Great video. How do you show the bar below the header withValid, Error, Empty status? Thank you!
@arne.munther
@arne.munther Жыл бұрын
Thank you. I like to do a bulk replacement, based on table (excel) with two columns, A (numbers) and B (text). If the value of Number columns is equal to a value in column A, then replace the text in another columns, with text from columns B.
@russomarta9059
@russomarta9059 Жыл бұрын
Thanks so much from Napoli !!
@w13ken
@w13ken 2 жыл бұрын
Chef's kiss for this one Rick 🙂 I wish the Power Query UI options for updating columns were as good as for adding columns but this is a great explanation and helped me out. Subscribed!
@BIGorilla
@BIGorilla Жыл бұрын
Thanks, great to hear that helped!
@philkrohn6335
@philkrohn6335 7 ай бұрын
Great video! Is there any way to replace the values in various columns and not just one and each with the same condition?
@stuartproctor6051
@stuartproctor6051 Жыл бұрын
Absolutely brilliant, this has saved my so much time and head-scratching! Thank you 🙂
@BIGorilla
@BIGorilla Жыл бұрын
Cheers Stuart. This can be tricky !
@samyoung6331
@samyoung6331 Жыл бұрын
Oh my gosh. Why WHY DID I NOT WATCH THIS YEARS AGO!!!
@evelic
@evelic Жыл бұрын
Thank you. Just what I was looking for.
@ThiagoGSilva
@ThiagoGSilva Жыл бұрын
Nice, direct and clear
@Soulenergy31
@Soulenergy31 2 жыл бұрын
Neat and wise approach, thx a bunch!!
@huseyinburaktasci1638
@huseyinburaktasci1638 7 ай бұрын
wow! what a solution. Thanks a lot!!
@mariangelesavalos9130
@mariangelesavalos9130 Жыл бұрын
Me salvaste la vida, gracias por tu video!
@nelson_k_d
@nelson_k_d 2 жыл бұрын
Thanks Man you are awesome, great way of presentation!
@Sangram2031
@Sangram2031 Жыл бұрын
Awesome solution bro🎉
@mnowako
@mnowako 2 жыл бұрын
Awesome trick! Thank you.
@suki9860
@suki9860 2 жыл бұрын
Simply Magic, Rick! Thanks!
@BIGorilla
@BIGorilla 2 жыл бұрын
Glad to hear!
@mapi55555
@mapi55555 2 жыл бұрын
Awesome explanation.
@omidgharipour6974
@omidgharipour6974 2 жыл бұрын
I love it. Thank You for making this video.
@BIGorilla
@BIGorilla 2 жыл бұрын
Thanks Omid. I'm glad it helps, more useful content is scheduled to release soon. If you wanna keep track, subscribe 😎🔥
@andyle1256
@andyle1256 2 жыл бұрын
Note to self: To skip a line in the formula bar, press "Shift" + "Enter"
@BIGorilla
@BIGorilla Жыл бұрын
Great tip!
@Easy_crafts_fr_u
@Easy_crafts_fr_u 2 жыл бұрын
Useful. Thank you👍
@luislopez-g2k
@luislopez-g2k Жыл бұрын
Very helpful video! You are a genius. Liked ans suscribed!
@mdmizanurrahman2914
@mdmizanurrahman2914 2 жыл бұрын
This is really helpfull! exactly i wanted to learn. thank you so much !
@fajnefajne4339
@fajnefajne4339 Жыл бұрын
That is a fantastic trick. I have just used it. Thank you Rick! ;-)
@BIGorilla
@BIGorilla Жыл бұрын
Great Fajne, glad it worked!
@krishnamurthy1945
@krishnamurthy1945 3 жыл бұрын
Thank you for sharing knowledge. Could you give more details on how to generate IndexYearMonth column ,
@BIGorilla
@BIGorilla 3 жыл бұрын
Hi Krishna, I appreciate the support. To answer your question. The topic of an IndexYearMonth column was not mentioned in this video, but can be useful for time intelligence purposes. To create one: 1. Group your data in Power Query by Year and Month, and as aggregation select 'All Rows'. 2. After clicking OK, go to 'add column' and add an Index Column. 3. Since you clicked All Rows in step 1, you still have table objects available on each line. Expand the column with table objects by selecting the arrows in the right-top of the column. You have now created the YearMonth Index column. Hope it helps! Rick
@krishnamurthy1945
@krishnamurthy1945 3 жыл бұрын
@@BIGorilla Thank you Rick. actually i am doing the order by for the last 12 months. having data like Feb-20 , Jan-21 ,... etc.
@BIGorilla
@BIGorilla 3 жыл бұрын
Hi @@krishnamurthy1945, that's perfectly fine. Is there a question or can go forward with it?
@mhd2hamad
@mhd2hamad Жыл бұрын
very helpful. many thanks
@PillsLifestyleReviews
@PillsLifestyleReviews 2 ай бұрын
Thank You!
@vashisht1
@vashisht1 4 ай бұрын
But Rick if have mutiple replacement like say 100 then I wouldn't perfer writing if else..can we use switch or any better way..
@DavesMegaBeats
@DavesMegaBeats Жыл бұрын
Thanks great video
@isaacmuhanga
@isaacmuhanga Жыл бұрын
Helpful. But what is the "No" is instead some column reference, will it work?
@isaacmuhanga
@isaacmuhanga Жыл бұрын
What if*
@joncue0304
@joncue0304 5 ай бұрын
How would you cycle through another table to determine the values to lookup and replace? I've seen the list.accumulate, however it did not work in my use case. Is there another way to do this?
@kyleropp6634
@kyleropp6634 Жыл бұрын
Thanks!
@kathybunch2439
@kathybunch2439 2 жыл бұрын
Great video - one question - What change would you make if you were interest in changing the value if [STATE] contained the letter "T" rather than [STATE] = "Tamaulipas" - I cannot quite seem to get it right when trying to use a Text.Contains statement
@BIGorilla
@BIGorilla 2 жыл бұрын
Hi Kathy, You can try something like: each if Text.Contains( [STATE], "T" ) then x else y Hope that helps!
@johnzurales8461
@johnzurales8461 2 жыл бұрын
@@BIGorilla For this to work, the word state needs to be proper case "State" which is the way the field name is shown in the video. I also tested a second condition with the script below and it works. = Table.ReplaceValue(#"Sorted Rows", each [Smoking_Allowed], each if Text.Contains([State],"T") then "x" else if Text.Contains([State],"E") then "y" else [Smoking_Allowed], Replacer.ReplaceText,{"Smoking_Allowed"}) Question: How do you deal with the lower case "t" which is not picked up in my example. I'd like it to test for upper or lower case letter T. Great video. I struggled for hours 😀with the text contains function until I found this comment. Thanks, John
@BIGorilla
@BIGorilla 2 жыл бұрын
@@johnzurales8461 you can use the third optional argument of text . contains and fill in: Comparer.OrdinalIgnoreCase. This tests for your value case insensitive. Cheers 😁
@steveschouten
@steveschouten Жыл бұрын
Awesome Rick!
@patrickpalombo
@patrickpalombo Жыл бұрын
I want to click a button and set cell value in a block from B3:H60 to “0” ONLY if the corresponding row cell in column A has a value(is not null) And I cannot figure this out to save my life. Can you help?
@andresjustinianod.7067
@andresjustinianod.7067 2 жыл бұрын
Thanks
@050224011
@050224011 2 жыл бұрын
Very Clever, thank you
@fachrulrizky
@fachrulrizky 2 жыл бұрын
Excellent video.. thank you so much! Could you tell me how to replace value when I have more than 1 condition (for example, I need to change the value for "India" under column Country on 17 December 2021 under Column "Date" Thanks in advance Best regards
@BIGorilla
@BIGorilla 2 жыл бұрын
You can extend the logic in the video. So add an if condition that says: if [country] = "India" and [Date] = #date(2021, 12, 17) then true else false Please have a look at if-statements if you have any trouble there: gorilla.bi/power-query/if-function-in-power-query/
@JorgePerez-bu4ph
@JorgePerez-bu4ph Жыл бұрын
Hi mate! Very useful video. I'm relatively new to Power BI/Power Query. I need to complete some missing data on my table, more exactly missing city names on addresses. Your code worked perfectly when I need to change one name to another, but it doesn't work when the field/column is blank or null. Any idea why?
@Timbollew
@Timbollew Жыл бұрын
Try changing code at the end to Replacer.ReplaceText to Replacer.ReplaceValue or vice versa
@rahulbhanushali5278
@rahulbhanushali5278 Жыл бұрын
Great video, but what if I want to replace values based on matching condition of certain column values to column values from another table. (Like how we create relationships using keys)?
@wowagt4589
@wowagt4589 8 ай бұрын
I love you for this
@10ozGold
@10ozGold 3 жыл бұрын
Excellent video. The single step code is very helpful. How would you modify the code that can query against another wild keyword From To table?
@hiteshraja76
@hiteshraja76 2 жыл бұрын
Have a query : In Power query a column has text and dates both. I want to replace only the dates to null so that i can fill down the text. can you pls guide ?
@BIGorilla
@BIGorilla 2 жыл бұрын
Something like: if Value.Type( [Column] ) = "Text" then [Column] else null. Please have a good look what Value.Type returns for your text values. :)
@Donzell1Dawson
@Donzell1Dawson 2 жыл бұрын
I like your solution! What about if a "contains" if formula? I will like to keep all values that contain Season (i.e. Season 1, Season 4, etc.) and delete everything else in my Season column. Total noob here.😁
@BIGorilla
@BIGorilla 2 жыл бұрын
try something like : if Text.Contains( [Season], "Season" ) then [Season] else null
@christopherskyap8985
@christopherskyap8985 2 жыл бұрын
Hi Gorilla Sir, Great Video I was trying to apply to multiple columns but cannot get it work Table.ReplaceValue(#"Change Type:, each {[Value1], [Value2]}, each if [Name] = "Tommy" then "Replaced" else {[Value1], [Value2]}, Replacer.ReplaceValue, {"Value1", "Value2"}
@AP-eb8hd
@AP-eb8hd 20 күн бұрын
Hey man awesome
@Gilligan2755
@Gilligan2755 4 ай бұрын
I keep having trouble making this work if the values I happen to be replacing are null. The condition I'm using is based on the value in another column, and it works just fine if do it by adding a conditional column. What am I doing wrong?
@MayurPatil-d4o
@MayurPatil-d4o Жыл бұрын
I have query I have made a list of column which contains TDS in their heading. Now I want to create a Column where it checks the column from this list for current row that if any column from this list is not null for the row then take the heading of the column from the list in the created column, if all column are null then take null .
@stevedepeijper5054
@stevedepeijper5054 2 жыл бұрын
Nice one!
@Griffindor21
@Griffindor21 Жыл бұрын
Great vide! But it does not work if the cell already has a null value
@smartwork4768
@smartwork4768 2 жыл бұрын
Amazing
@gezin_longuevilleosaer4245
@gezin_longuevilleosaer4245 Жыл бұрын
Hi Rick, in my example it did not work when there was a null value in the column, after fixing that the magic was there 🙂
@lucaspatterson4033
@lucaspatterson4033 Жыл бұрын
Just ran into the same issue. Thanks for pointing this out. Inserted a step above to replace nulls with zeroes and it started working. Thanks!
@akshaypatil8155
@akshaypatil8155 Жыл бұрын
One column contains values as 8806182550997, 1005RN07. I want to replace the alphabets in the second value with 00 1) What data type should i keep for the column? How do i do it ? I tried to keep data type of column as Text, Replace function in power query is not able to recognize the text part????
@nikhilashishitlive8582
@nikhilashishitlive8582 2 жыл бұрын
Sir can we change multiple thing without using formula
@pkuchnicki
@pkuchnicki Жыл бұрын
Rick, love you useful youtube videos! Just went through your 150 text function examples and by far it is the most practical stuff I have seen on M code. But, I am not seeing something I believe exists in other languages, checking for a blank value. I see cells in a row which are not null and I would like to test for it, but I am not seeing a way to do it. Am I missing something?
@BIGorilla
@BIGorilla Жыл бұрын
Hey Peter. Bit late to the party. So you're looking to test if something is blank. Perhaps I'm misunderstanding but have you tried a statement like: if [SomeColumn] = null then "null" else "non-null"
@nickvanmaele8059
@nickvanmaele8059 Жыл бұрын
This trick is great but it does not seem to work with columns of type logical. Change the type to text first, then replace, then switch back.
@anthonyaroni5530
@anthonyaroni5530 2 жыл бұрын
Awesome content!👍
@BIGorilla
@BIGorilla 2 жыл бұрын
Thank you Anthony! Glad you like it 😁
@arukhush7024
@arukhush7024 2 жыл бұрын
Does this work for date columns? Didn't work for me
@srikantmukherjee1034
@srikantmukherjee1034 2 жыл бұрын
Can we Replace any Text Before a Delimiter in Power Query? Like I have below Excel Zone - MP Region - Veg Nepal State-Bhtan Dubai In ExcelSheet, Find and Replace, We do like * - and Replace All What to be Used in Power Query to Replace any Text or Value Like * Please Help
@srikantmukherjee1034
@srikantmukherjee1034 2 жыл бұрын
Please Revert
@shashankchandramouli34
@shashankchandramouli34 2 жыл бұрын
i am doing dashboard for animals dataset, there is a column named threats , in that column the values are sentences , like " The major threat is deforestation ...." ,i want to replace these kind of sentences to one word like " deforestation " based on condition like if the row value contains this word then change it to another word . is it possible to that ?
@TehKonnos
@TehKonnos Жыл бұрын
Note, that if you want to replace NULL values, you have to check the checkbox "Match entire cell contents"
@Timbollew
@Timbollew Жыл бұрын
For so long this has bothered me why this wouldn't play nice with null values but you are correct this resolves it! Thank you. It seems if you are having an issue with nulls (might extend to other data types also) change Replacer.ReplaceText to Replacer.ReplaceValue or vice versa.
@BIGorilla
@BIGorilla Жыл бұрын
You're right. null is not considered a text value, so Replacer.ReplaceValue is required. I explained some of that here: gorilla.bi/power-query/replace-values/#replacer-functions
@sophykeo9639
@sophykeo9639 10 ай бұрын
how to display percentage of Valid , Error, Empty below header?
@felipesignorellireis7839
@felipesignorellireis7839 3 жыл бұрын
So, will the other States, other than Tamaulipa, continue with the original value? I notice that in the formula "if" the states different from Tamaulipa remain as "No" as original not changing to "Smoking Allowed"
@BIGorilla
@BIGorilla 3 жыл бұрын
Hey Felipe, You are correct. Lines where the state is different from Tamaulipas, keep their original value. The original value was in a column named "Smoking Allowed". The formula therefore returns the original value of that column. The words 'smoking allowed' are not returned.
@felipesignorellireis7839
@felipesignorellireis7839 3 жыл бұрын
@@BIGorilla Thank you!!
@jaapolsthoorn796
@jaapolsthoorn796 3 жыл бұрын
Hey Rick, does this break query folding or does it play nice? Any tips on extracting an hour from a date time stamp without breaking query folding? I couldn't work it out without turning the dts into a string, then using LEFT and RIGHT, which was very ugly...
@BIGorilla
@BIGorilla 3 жыл бұрын
Jaap! Unfortunately, no additional tips for that. Your approach works, extracting the time part with a Text.End( Text.From( [DateTime] ), 7 )... (I'm guessing somewhere around 7 characters). You could alternatively duplicate your DateTime column, and simply format it as Time as Data Type in the Power BI interface, don't do it in PQ. Ideally, create the column in your SQL database. Hopefully the engine supports Query Folding for Time data types in the future, however, for now it you'll have to find another way :( Cheers, Rick
@alexlijesen6197
@alexlijesen6197 2 жыл бұрын
Thanks for your clear explanation but I would like to go a little deeper. The following: Can you also change value in the cell with a step e.g. search for “->” and change that to “|” with an if function Old current cell value = “explanation ->” New value in cell = "explanation |"
@BIGorilla
@BIGorilla 2 жыл бұрын
hi Alex, From what you describe you can do that with the regular replace operation. No need for a conditional replacement. Just right click the column, replace values, and replace "->" by "|"
@ANDRENASUUKYI
@ANDRENASUUKYI 2 жыл бұрын
Hi, I need replace values on incremental value. E/g week 22 as week 1, week 23 as week 2 & so on. How to I perform the action in Powerbi
@BIGorilla
@BIGorilla 2 жыл бұрын
You can try something like: if [weeknumber] >= 22 then [weeknumber] - 22 else [weeknumber] + 33 I'm not fully sure the +33 is correct, but some number should work there. Hope it helps!
@ANDRENASUUKYI
@ANDRENASUUKYI 2 жыл бұрын
@@BIGorilla it worked thanks ! "Week " & if >= 22 , -21)
@ExcelInstructor
@ExcelInstructor 2 жыл бұрын
Hello :) I do have a question. Honestly - i found this solution somewhere else. that said I also have an problem. when I operate on text values like you, it works perfectly. But when in my equivalent of [State] column I do have an object like Table or List and I do a check if the Object is empty List.Isempty or Table.IsEmpty it stops working correctly and return the value that was originaly in this column. why is that? Can you help out?
@BIGorilla
@BIGorilla 2 жыл бұрын
I'm afraid I don't understand the question.
@ExcelInstructor
@ExcelInstructor 2 жыл бұрын
@@BIGorilla ok Let me try asking this way. Imagine that instead of classical text / Value in [State] you do have and object nested Like another Table or List. Now can I using Replace.Values function to change Table / List object into null value when Table or List is empty?
@JonathanExcels
@JonathanExcels 3 жыл бұрын
When is the ‘each’ statement required in a formula.
@BIGorilla
@BIGorilla 3 жыл бұрын
Hey Jonathan, The each expression has been put into place to make it easy to define simple functions. You could write a simple expression that needs a number as input and increments it by 1: (Y) => Y + 1 You can write this the same by: (_) => _ + 1 Microsoft created a shortcut to get here by using: each _ + 1 So in the example I show, a good formulation would be: (_) => if _[State] = "Taumaulipas" then "No" else [Smoking_Allowed]. Each makes the expressions more readable. It's good to know its a shortcut for the regular function. We need the function in the replace argument, since we don't replace values by a single other value. We want to apply logic, and therefore need the function.
@williamrhopkins
@williamrhopkins 2 жыл бұрын
Hi is there anyway to make the column name in the each clause a variable? In you example I wish to do something like myColumntoUpdare = {Smoking Allowed} and then ...each myColumnToUpdate...I have use cases where I don't know the column to update in advance and would like this to be dynamic
@BIGorilla
@BIGorilla 2 жыл бұрын
Good question, I'm not sure at this point...
@sergeiStPetebaklan
@sergeiStPetebaklan 2 жыл бұрын
As variant listOfColumns = {"Smoking_Allowed"}, // could be few #"Replaced Value" = Table.ReplaceValue(#"Changed Type", "Tamaulipas", //a each [State], //b (c, a, b) => if a = b then "No" else c, listOfColumns ) //c
@raphaellebeau6368
@raphaellebeau6368 2 жыл бұрын
like + sub, to the point and well explained!
@BIGorilla
@BIGorilla Жыл бұрын
The benefits to this method are numerous. Happy it clicked!
@rakeshsahoo16
@rakeshsahoo16 Жыл бұрын
any idea ,,some logic for SQL?
@hectordelvillar1246
@hectordelvillar1246 Жыл бұрын
Hi Rick, this trick seems to be really good but for some reason, it does not work for me. I carefully followed every step but my "Hospital Group" column keeps returning null values. Even after checking the "Match entire cell context" box. Any help? Here is my formula each [Hospital Group], each if [MAK Code] = "510115" then "Huron Perth Alliance - Stratford General Hospital Site Hospital Reporting Cluster" else [Hospital Group], Replacer.ReplaceText,{"Hospital Group"})
@BIGorilla
@BIGorilla Жыл бұрын
Hey Hector, Sorry to hear that. Could you change your code from: Replacer.ReplaceText, to Replace.ReplaceValue? Give that a try. I've explained their uses here: gorilla.bi/power-query/replace-values/#replacer-functions
@hectordelvillar1246
@hectordelvillar1246 Жыл бұрын
@@BIGorilla Hi Rick, thanks for the help and your quick answer. Not sure why is not working on my end. I have tried both methods (ReplaceText and ReplaceValue) but my Hospital Group column is still showing null for those values.
@BIGorilla
@BIGorilla Жыл бұрын
@@hectordelvillar1246 It's hard to troubleshoot with you without seeing an example. Maybe you could: - Look on my site on the URL provided above to see working examples - Test the data type of your column (perhaps null values are causing issues?) - Provide a test query that shows the issue.
@hectordelvillar1246
@hectordelvillar1246 Жыл бұрын
@@BIGorilla Hi Rick, not sure if you received my email but I sent you the details that show the issue (July 3rd). I hope I can hear back from you. Again, thank you for all the help!
@lorenlim2315
@lorenlim2315 8 ай бұрын
what if im replacing a date column?
@workstuff5253
@workstuff5253 2 жыл бұрын
I have used this method before but came across a problem when my field name had a "/" or "\". It doesn't recognise the square bracket notation to reference the field name and using the underscore shorthand for "this column" didn't work either. Renaming the field with a space instead of the "/" fixed the issue. PS: Nice "Buddy Christ" (Dogma) on your shelf behind 👍
@KlausEltrop
@KlausEltrop 7 ай бұрын
I would like to give hundreds of "thumbs up" 👍🙂 but sorry ... there is only one 😞
@isabellarocks1000
@isabellarocks1000 Жыл бұрын
I want to add a today function in this. I need if [state] = greater than today then "Completed" else "_". Can anyone help me with the code for this?
@BIGorilla
@BIGorilla Жыл бұрын
Today in power query you can make Wkth: Date.From( DateTime.LocalNow() ) Make sure the comparison column is of Date type 😁
@isabellarocks1000
@isabellarocks1000 Жыл бұрын
@@BIGorilla I really appreciate the response. I typed =if [State] < = Date.From(DateTime.LocalNow() ) Then "Yes" Else "_" it put error in every box. Where do I put the < symbol
@BIGorilla
@BIGorilla Жыл бұрын
@@isabellarocks1000 =if [State]
@isabellarocks1000
@isabellarocks1000 Жыл бұрын
@@BIGorilla I had a space between
@isabellarocks1000
@isabellarocks1000 Жыл бұрын
@@BIGorilla would it be possible to add 30 days from today?
@edgarsan71991
@edgarsan71991 2 жыл бұрын
00:29 You almost pronounce correctly jaja, are you using XML from Mexico to retrieve all this dataset?
@gettokeroro5007
@gettokeroro5007 2 жыл бұрын
I try to use each if Text.startwith or Text.Endwith to replace with condition but it not working
@Faisal63045
@Faisal63045 2 жыл бұрын
Thank you for sharing When I try replace text valu nothing happen when I investigate it I found the original value show as below Donald#(00A0)Duke
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 77 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 5 МЛН
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 2,9 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 14 МЛН
each & underscore_  in Power Query Explained
9:58
Goodly
Рет қаралды 49 М.
Fast Running Totals in Power Query (Complete Guide)
29:16
BI Gorilla
Рет қаралды 30 М.
Create a Join based on Date Range in Power Query
12:00
BI Gorilla
Рет қаралды 10 М.
Transform Column Names in Bulk in Power Query
19:23
BI Gorilla
Рет қаралды 35 М.
List.Generate in Power Query - Tutorial with Easy Examples
22:56
Top 10 Power BI Features You Should Be Using Right Now!
17:24
How to Power BI
Рет қаралды 70 М.
High-Income Excel Skills Worth Learning in 2024 (Free File)
29:19
MyOnlineTrainingHub
Рет қаралды 385 М.
I Bet You Don't Know All These Power Query Tricks
12:28
Goodly
Рет қаралды 39 М.
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 77 МЛН