cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Creating Rows in Power BI

Any idea if i want to create 20 rows based on Year 2020?

 

First Row = Year (Today()), which is 2020.

 

E.g.

Year

2020

2019

2018

...... 

1999

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Creating Rows in Power BI

Hi @snowrider1799 

Thanks for Greg_Deckler, with a little midyfication, it works.

Table = GENERATESERIES(YEAR(TODAY())-21,YEAR(TODAY()),1)

Capture4.JPG

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Super User IV
Super User IV

Re: Creating Rows in Power BI

GENERATESERIES(YEAR(TODAY()),YEAR(TODAY())-20),1)

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Highlighted
Community Support
Community Support

Re: Creating Rows in Power BI

Hi @snowrider1799 

Thanks for Greg_Deckler, with a little midyfication, it works.

Table = GENERATESERIES(YEAR(TODAY())-21,YEAR(TODAY()),1)

Capture4.JPG

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Super User IV
Super User IV

Re: Creating Rows in Power BI

Nice. Yeah, small number comes first!!

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Highlighted
Frequent Visitor

Re: Creating Rows in Power BI

Thanks @v-juanli-msft  and @Greg_Deckler !

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

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

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors