Forum Discussion
Convert every 6 rows into columns
- 5 years ago
Brazil is great, I'm helping you from Portugal! π
Sorry if I skipped some detailed steps...
You need to go here:
After that, write the following code (for each column you gonna need), adapting your if-statement to each column.
E.g.:
Column Name = if [Column 2] = "Name" then [Column 1] else null Column Id = if [Column 2] = "Id" then [Column 1] else null ...Um abraΓ§o! π
Hi Edu!
Greetings from Brazil π
I couldn't add the first line (if [Column 2] = ##Column_to_be_created then [Column 1] else null)
..I'm kind of newbie at PBI.
I've tried to insert your string at custom column but showed me "expected literal token" π
Brazil is great, I'm helping you from Portugal! π
Sorry if I skipped some detailed steps...
You need to go here:
After that, write the following code (for each column you gonna need), adapting your if-statement to each column.
E.g.:
Column Name = if [Column 2] = "Name" then [Column 1] else null
Column Id = if [Column 2] = "Id" then [Column 1] else null
...
Um abraΓ§o! π