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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
FrankieMcQ
Frequent Visitor

Build a table based on column values

Hi

 

I have a table consisting of a single column of variable names coming from a JSON request. The length of the list can change over time:

 

VariableNames

Name

ID

Due Date

etc.

 

I also have a list of Job IDs, gain populated from a JSON request:

 

Job ID

Job1

Job2

Job3

etc.

 

I can then build a JSON query that returns me a list of values for each variable name:

 

Job ID    Variable Name   Variable Value

Job1       Name                   Joe

Job1       ID                         0001

Job2       Name                   Bob

Job3       ID                         0002

 

So, basically I want to merge this information into a single table that looks something like this:

 

JobID    Name        ID       FutureVariable

Job 1     Joe            0001   ...

Job 2     Bob           0002   ...

 

I've tried all sorts of combinations without success. Any help gratefully received.

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@FrankieMcQ

 

Try Pivoting the Variable Name Column with Variable Value as Values...Do not Aggregate

See the attached file as well

pivot.png

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@FrankieMcQ

 

Try Pivoting the Variable Name Column with Variable Value as Values...Do not Aggregate

See the attached file as well

pivot.png

I tried this an it worked perfectly, many thanks for your help!

 

Smiley Very Happy

 

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors