Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
I am trying to import some data from a csv file into PowerBi.
I need a specific value from a row and column, let's say first row/column5.
Then i need to create a new column and need to have the selected value in the previous step in the new column in each row.
How am i going to accomplishthat in Power Query (Not DAX).
Thanks!
Solved! Go to Solution.
Hi, @Joe_100
#"Added Custom" receive the a table returned by the last step. [Column5]{0} means first row/column5. Here is my test.
Table:
You may create a Custom Column as follows.
#"Changed Type" is the last step which returns a table result. [Score]{0} is the value of the first row/Score.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Joe_100
If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.
Best Regards
Allan
Got it solved by now 🙂
Not familiar with the Power Query/ M language, so i dont totally understand how it behaves.
I added a custom column and first used the following formula:
[Column5]{0}
That didn't worked.
This works, mentioning the previous step (not sure why though?):
#"Added Custom" [Column5]{0}
Hi, @Joe_100
#"Added Custom" receive the a table returned by the last step. [Column5]{0} means first row/column5. Here is my test.
Table:
You may create a Custom Column as follows.
#"Changed Type" is the last step which returns a table result. [Score]{0} is the value of the first row/Score.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
56 | |
38 | |
35 |
User | Count |
---|---|
85 | |
66 | |
59 | |
46 | |
45 |