Forum Discussion
Help Power query!!! New column with specific referenced cells
- 5 years ago
Hi Anonymous ,
Glad to hear that you have found the solution. Could you share us your solution?
In addition, you can add an index column to get what you want like so:
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous5 years ago
Hi Icey
Yes, the solution started by me remebering that Power BI works in tables etc and not columns & rows like excel.
So, 1st I set an index and filtered the data I wanted out relative to the 1st index rows[12,24,36,48,60]. Then I added a new index column to start from 1 on this filtered data and used this 'new' index to link the table to my other tables.
Thanks for all your help everyone and interest 🙂
Regards
Franco.
Anonymous , do you have cell number column. Else add an index column, if that gives the cell/row number you want you can have new column or measure https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
new column =
if( [index] in {12,24,48,60,72} , [Col1], blank())
- Anonymous5 years agoNot applicable
Hi Amit
Thanks for your reply.
I have a number column and thus the cell/row locations I would like to show.
The formula is giving an error:
Regards
Franco the newbie 😄
- amitchandak5 years ago
Super User
Anonymous , Sorry that was dax code, in power query try like
= if [index] = 12 or [index] = 24 or [index] = 48 or [index] = 60 or [index] = 72 then [Col1]
or
new column =
if [index] in {12,24,48,60,72} then [Col1]
- Anonymous5 years agoNot applicable
Hi Amit
I had to change text to type whole number to avoid errors, but the new column just shows blank.
I just need to show the values at those specific cells(in the defined range) in a new column.
Regards