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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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