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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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