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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
etrietsch
Frequent Visitor

GENERATESERIES() function limited to 32766 rows?

Hi,

 

The following code only generates 32766 rows. Is this a restriction to the function or table, or am I doing something wrong?

 

Dates = 
    GENERATE(GENERATESERIES(1;60815);
    VAR days = [value]
    Return ROW("Dates"; DATE(1880;1;days)))

Cheers

1 ACCEPTED SOLUTION
etrietsch
Frequent Visitor

UPDATE:

 

The table did have more than 32766 rows, but after 32766 the date didn't change anymore. The problem looks to be the DATE() function which can't handle a 'day' value larger than 32766...? 

 

After changing the code all was fine. The new code is:

Dates = 
    GENERATE(GENERATESERIES(1;datediff(date(1880;1;1);now();DAY));
    VAR days = [value]
    Return ROW("Dates"; DATE(1880;1;1)+days))

Thanks for the help!

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

https://docs.microsoft.com/en-us/dax/generateseries-function


@etrietsch wrote:

Hi,

 

The following code only generates 32766 rows. Is this a restriction to the function or table, or am I doing something wrong?

 

Dates = 
    GENERATE(GENERATESERIES(1;60815);
    VAR days = [value]
    Return ROW("Dates"; DATE(1880;1;days)))

Cheers


 


@Anonymous wrote:

https://docs.microsoft.com/en-us/dax/generateseries-function


I have read the documentation on this function. How is this answering the question?

etrietsch
Frequent Visitor

UPDATE:

 

The table did have more than 32766 rows, but after 32766 the date didn't change anymore. The problem looks to be the DATE() function which can't handle a 'day' value larger than 32766...? 

 

After changing the code all was fine. The new code is:

Dates = 
    GENERATE(GENERATESERIES(1;datediff(date(1880;1;1);now();DAY));
    VAR days = [value]
    Return ROW("Dates"; DATE(1880;1;1)+days))

Thanks for the help!

MFelix
Super User
Super User

Hi @etrietsch,

 

What's the version you are on?

 

Tried your code with February version and got 60.815 rows, no issue on my version.

 

 

Regards,

MFelix


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



Hi @MFelix I use Power BI Version: 2.66.5376.1681 64-bit (februari 2019) and Windows 10 Home (64-bit) 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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