The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello Forum,
I'm trying to see if I can get help with a data transformation scenario. I have a data table with 3 columns. Employee, Date/Time and Weight. Sometimes the inputs can go into the wrong column. See attached example:
I was hoping to copy my data source in my model. Filter each query down to the rows that conform to one input method and then merge the queries back together with the data corrected. Trouble is I can't find the best way to filter the data in each query to isolate the input method. Maybe there is a better strategy that I'm not thinking of. Any thoughts on how to accomplish are appreciated!
Solved! Go to Solution.
Hi @Anonymous ,
I remembered seeing this, and found it in M is for (Data) Monkey, a very useful book. @KenPuls is one of the authors.
So add a custom column with the formula below in the picture in PQ. You get the result in the picture. You can then go to filter for that custom column and unfilter null. That takes away the rows that have bad data. You may want to copy those rows first, so that you could change your original data - you could sort by ascending, and the nulls float to the top.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
I tried that before posting. I was hoping to use the remove error rows functionality. Changing the data type of the column only changes the presentation of the data. It doesn't error. Does anyone know how to force an error instead of converting underlying data to the chosen data type?
Hi @Anonymous ,
I remembered seeing this, and found it in M is for (Data) Monkey, a very useful book. @KenPuls is one of the authors.
So add a custom column with the formula below in the picture in PQ. You get the result in the picture. You can then go to filter for that custom column and unfilter null. That takes away the rows that have bad data. You may want to copy those rows first, so that you could change your original data - you could sort by ascending, and the nulls float to the top.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Hi @Anonymous ,
I believe when you bring in the data to Power Query, it will signify an error if the type does not match the column type. Then you can either fix the data, or filter out errors in each column. It is pretty cool. You may have to adjust the type first as in your date column. Also your emp id is probably better as text.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
119 | |
87 | |
75 | |
55 | |
44 |
User | Count |
---|---|
135 | |
125 | |
78 | |
64 | |
63 |