Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tjlong84
New Member

Using concatenate inside a column reference

Is there a way to use a concatenation inside of a column reference?  Specifically I have a table where I would like to evaluate the formula created by CONCATENATE("RELATED(FAF44_HiLoForecasts[value_",CONCATENATE('Table'[Year],"])"))

 

I would like to do this because I have a large dataset that is matrixed and I would like to un-matrix it to make it more usable.

 

The data I have is set up like this:

Type2012201320142015
A1234
B5678
C9101112

 

And I'd like it like this:

TypeYearValue
A20121
A20132
A20143
A20154
B20125
B20136
B20147
B20158
C20129
C201310
C201411
C201512

 

Thanks in advance!

1 ACCEPTED SOLUTION
mattbrice
Solution Sage
Solution Sage

I know this is not a direct answer to the question you asked, but for this you are probably better off using Power Query to "Unpivot Columns" before pushing the data into the model.

 

2017-09-22_11-46-31.gif

View solution in original post

2 REPLIES 2
mattbrice
Solution Sage
Solution Sage

I know this is not a direct answer to the question you asked, but for this you are probably better off using Power Query to "Unpivot Columns" before pushing the data into the model.

 

2017-09-22_11-46-31.gif

This is a much simpler way to accomplish what I was trying to.

 

Thanks!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.