cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Generate number series based on total number of rows in another table

Hi guys

 

This probably a simple question but hope you can shed some light. I have a table from web api call which has over 80,000 rows plus keeps on increasing week by week. Now, I need to an another table with the same number of rows. Currently, I use the below to create series and manually increase each week or increase one off to 90,000.

 

 = GENERATESERIES(1,80000)
 
But does anyone has a better logic in increase this default?
 
Thanks in advance
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User V
Super User V

Re: Generate number series based on total number of rows in another table

Hi @Sankzpower ,

 

Just add the following code refering to the first table:

 


Table 2 = GENERATESERIES(1, COUNTROWS('Table'))

 

Should work as expected.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog:

Power BI em Português





View solution in original post

1 REPLY 1
Highlighted
Super User V
Super User V

Re: Generate number series based on total number of rows in another table

Hi @Sankzpower ,

 

Just add the following code refering to the first table:

 


Table 2 = GENERATESERIES(1, COUNTROWS('Table'))

 

Should work as expected.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog:

Power BI em Português





View solution in original post

Helpful resources

Announcements
Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Upcoming Events

Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Top Solution Authors