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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
DavidWaters
Helper I
Helper I

Generate Series of multiple columns

Hi All,

 

I need to replace a link to Excel data source with a generated series with DAX as follows:

 

Years 2013 to 2025, with 1-120 for each so 13 years with 1-120 number rows.  Then I need 75 groups of that, denoted 1,2 etc

 

Thanks so much in advance, I am stuck!

 

YearDev MonthGroup
201311
201321
For each yearto 120then 75 groups of this
1 ACCEPTED SOLUTION
DavidWaters
Helper I
Helper I

Generated = VAR _numberTab = SELECTCOLUMNS ( GENERATESERIES ( 1, 120 ), "number", [Value] )              

          VAR _valuesTab = GENERATESERIES(2013,2025,1)

RETURN

      CROSSJOIN(_numberTab,  _valuesTab)

View solution in original post

5 REPLIES 5
DavidWaters
Helper I
Helper I

@amitchandak the dax has been posted to show you what I mean, you can run it

 

I guess this is solved

DavidWaters
Helper I
Helper I

DavidWaters
Helper I
Helper I

The above gives me 1 to 120 rows for each year.  Then I need this x75 for 1 to 75

 

So crossjoin above with Generateseries (1,75,1)

 

I have solved this by crossjoining the above two tables to get the final solution

DavidWaters
Helper I
Helper I

Generated = VAR _numberTab = SELECTCOLUMNS ( GENERATESERIES ( 1, 120 ), "number", [Value] )              

          VAR _valuesTab = GENERATESERIES(2013,2025,1)

RETURN

      CROSSJOIN(_numberTab,  _valuesTab)

amitchandak
Super User
Super User

@DavidWaters ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.