Replace Values and Column Data Types with Power BI (Power Query)

  Рет қаралды 73,612

The Power User

The Power User

Күн бұрын

Пікірлер: 25
@jensimonson3754
@jensimonson3754 6 жыл бұрын
Good stuff. Thanks for sharing! One thing to add - You can change data types on multiple columns easier than that - Just select all the columns you want to change, using Ctrl and right-click and choose "Change Type"
@alexeimatcov7928
@alexeimatcov7928 2 жыл бұрын
Very useful piece of information. Thanks a lot!
@keiladasilva8523
@keiladasilva8523 3 жыл бұрын
Thank you!
@cokiebee9318
@cokiebee9318 6 жыл бұрын
This was very helpful. One question- once you make the update does it change automatically every time you update the query? Or do I have to do this step each time?
@ThePowerUser
@ThePowerUser 6 жыл бұрын
Hey! kind of - it depends. If you add new columns then you'll need to go back to your query and set the data types for each of the columns, but otherwise you wouldn't have to do anything else.
@_Areknames_
@_Areknames_ 5 жыл бұрын
at the end you speak about the command to replace values as per column type, you speak of an"Upsdrive data type"..but i cannot find such command..can you be more clear? thank you for your videos (great)
@ThePowerUser
@ThePowerUser 5 жыл бұрын
Hey! Check out this article about data types www.poweredsolutions.co/2018/03/12/data-types-data-conversion-ascribed-data-types-power-query-power-bi/
@19859ahmed
@19859ahmed 7 жыл бұрын
Nice video 👍, but why you didn't drag down the change type step?
@ThePowerUser
@ThePowerUser 7 жыл бұрын
Hey! Thanks for the kind comment. Hope you enjoyed it. Regarding the question--> Flexibility! Imagine one of the following possibilities: - One of the column names changed - A new column was created that was not taken in consideration in the Changed type step - Perhaps another changed type was applied before doing the 'Replace Values' If any of them happened, which more often than not do, dragging the 'Change type' would not only not work, but it would also have a negative impact in your solution as some steps might rely on a specific data type and going into the "any" data type would be a bad idea. tl:dr Dragging the 'Change type' step would only work in certain scenarios, whilst the method shown in this video would work in almost every scenario.
@vida1719
@vida1719 7 жыл бұрын
Great video! Do you know if it’s possible to add today’s date instead of null value, if the column contains dates and some rows are nulls? Would today’s date update next day/time with refresh?
@ThePowerUser
@ThePowerUser 7 жыл бұрын
You could use this function: msdn.microsoft.com/en-us/library/mt253492.aspx and instead of "each [Average]" you'd just use that Function and wrap it around a "Date.From" so it only shows the Date part
@papachoudhary5482
@papachoudhary5482 4 жыл бұрын
Thanks
@ioanniskiokpas4603
@ioanniskiokpas4603 5 жыл бұрын
Greetings! when you typed each [Average] at 02:00, is it possible to type something like AnotherQuery[Column] and read values from another query's column and do the replacements?
@ThePowerUser
@ThePowerUser 5 жыл бұрын
Hey! In short, yes. You can read the data from another query and inject it into this other query. How? that depends. Maybe what you're looking for is a Merge operation instead of a replace operation?
@ioanniskiokpas4603
@ioanniskiokpas4603 5 жыл бұрын
@@ThePowerUser thanx for the quick reply! It is actually replace that I am looking for and not merge. Because it would be Text.Contains for my query so that I will partially replace text with values from a replacement table. I have tried it with something like = Table.ReplaceValue(#"Renamed Columns", each Replacements[original],each(Replacements[replacement],Replacer.ReplaceText,{"Activity"})"" but i dont think I am getting the syntax right!
@ThePowerUser
@ThePowerUser 5 жыл бұрын
​@@ioanniskiokpas4603 if you're using Power BI Desktop, then you can use a new function called Text.ReplaceAll I highly recommend that you post your question and full scenario on the official Power Query forum: social.technet.microsoft.com/Forums/en-US/home?forum=powerquery
@cantcatchme8368
@cantcatchme8368 4 жыл бұрын
is it possible to replace values in one table by using other table values
@ThePowerUser
@ThePowerUser 4 жыл бұрын
www.poweredsolutions.co/2019/07/01/recursive-functions-in-power-bi-power-query/ this might help
@Saur
@Saur 7 жыл бұрын
Your videos are extremely helpful, thank you so much for sharing.
@ThePowerUser
@ThePowerUser 7 жыл бұрын
hey! thank you for the kind words. Hope you enjoyed the video :)
@erickchicas9808
@erickchicas9808 5 жыл бұрын
Hello , i´m trying to follow your video my column to get information when empty is called ship to party and needs to changed null from columns case e2e... my formula its the following Table.ReplaceValue(Source,null, each [Ship To Party Description], Replacer.ReplaceValue,{"Case E2E Name"}) both columns are text .... once i enter this formula i get all my columns names in each row but not the nulls to have a name
@ThePowerUser
@ThePowerUser 5 жыл бұрын
Hola Erick! The formula should work, but it also depends on how your data looks like. I highly recommend that you post your scenario with sample data on a forum. I have one, but its in Spanish. You can try the official Power Query forum which is in English from here: social.technet.microsoft.com/Forums/en-US/home?forum=powerquery
@MuhammetMustafaAslan
@MuhammetMustafaAslan 6 жыл бұрын
Love what you are doing here :)
@wynhopkins4023
@wynhopkins4023 7 жыл бұрын
Really helpful, thanks
@adityakalra7383
@adityakalra7383 4 жыл бұрын
This is useful 😁
My MEAN sister annoys me! 😡 Use this gadget #hack
00:24
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 71 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Это было очень близко...
00:10
Аришнев
Рет қаралды 7 МЛН
Table.TransformColumns in Power Query | Super Function ⚡
18:50
Pagination and DO/WHILE in Power BI / Power Query
14:13
The Power User
Рет қаралды 43 М.
Creating a simple date table in Power BI
7:50
SQLBI
Рет қаралды 167 М.
How to easily automate boring Excel tasks with Power Query!
17:10
MyOnlineTrainingHub
Рет қаралды 1,6 МЛН
Taking Buttons in Power BI Desktop to the Next Level
10:48
Guy in a Cube
Рет қаралды 404 М.
How to SIMPLIFY DAX using Power Query
16:14
Access Analytic
Рет қаралды 14 М.
Power BI Row-Level Security And Where To Filter
9:42
Guy in a Cube
Рет қаралды 155 М.
The Magic of Working with Lists in Power Query
14:27
Goodly
Рет қаралды 92 М.
Remove Blank Rows/Columns with Power Query Incl. STUBBORN Characters!
14:29
MyOnlineTrainingHub
Рет қаралды 54 М.
My MEAN sister annoys me! 😡 Use this gadget #hack
00:24