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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.