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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
al3xw3il
Frequent Visitor

How to create tables from multiple parameters?

Hi all,

 

I would like a table with two columns (i.e. Grind, Angle) using the Parameters below

 

StartGrind = 0

EndGrind = 200

GrindIncrement = 1

StartAngle = 0

EndAngle = 360

AngleIncrement = 10

 

and the table would look like this below...

 

Grind          Angle

0                 0

0                 10

0                 20

...

0                 360

1                 0

1                 10

1                 20

...

1                 360

2                 0

2                 10

...

200             360

 

 

It would be greatly appreciate if anyone can help!

 

Thanks

1 ACCEPTED SOLUTION

Hi @al3xw3il

 

The answer I was suggesting was a DAX based solution, so you would do it in Power BI Desktop (not the query editor),

 

Just click the highlighted "New Table" button on the modelling tab and paste in that code.

 

 

 

new table.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

4 REPLIES 4
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @al3xw3il

 

Please try the following as a new calculated table :

 

New Table = CROSSJOIN(
    SELECTCOLUMNS(GENERATESERIES(0,200, 1),"Grind",[Value]) ,
    SELECTCOLUMNS(GENERATESERIES(0,360,10),"Angle",[Value])
    )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi Phil,

 

Thanks for your reply.

 

But do you mean this? Apologies, I am not very good with Power BI...

 

let
New Table = CROSSJOIN(
SELECTCOLUMNS(GENERATESERIES(0,200, 1),"Grind",[Value]) ,
SELECTCOLUMNS(GENERATESERIES(0,360,10),"Angle",[Value])
)
in
New Table

 

Hi @al3xw3il

 

The answer I was suggesting was a DAX based solution, so you would do it in Power BI Desktop (not the query editor),

 

Just click the highlighted "New Table" button on the modelling tab and paste in that code.

 

 

 

new table.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thank you very much for your help Phil!

 

It works wonder!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.