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 August 31st. Request your voucher.

Reply
YukonCornelius
Frequent Visitor

GenerateSeries not reading slicer or parameter

Hi to all.  I'm trying to generate a table of years with a starting point determined by the user.

I've tried a created table of years and a parameter range of values but in both efforts the generateseries formula comes back with the error message: "The arguments in GenerateSeries function cannot be blank."

I searched on this forum and elsewhere under generateseries troubleshooting/slicer, and my blank error message.

I am probably missing something obvious but I can't figure out why the generateseries function isn't creating my table.

The generateseries works if I hard code a year in but I do want this function to be dynamic.  I have checked what few variables there are involved and they are all whole number.

There are no relationships.

I tried initially using a calculated table until I read on this form that generateseries doesn't like calculated tables so I just created a range of years.

I have screen shots of all three views and a simplified pbix with two tabs - one for the slicer reading from a created table of years and one for the slicer reading from the parameter range of years.

I have Sept 2024's Desktop version. 

The three screen shots below are from this file: Simplified GenerateSeries pbix 

Appreciate any thoughts on this.

 

Screen shot of generated table problem-model view.jpgScreen shot of generated table problem-table view.jpgScreenshot of generated table problem-report view.jpg

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You can use GENERATESERIES, but only as a temporary table variable within the formula for a measure. The measure itself must return a scalar value.

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

You can use GENERATESERIES, but only as a temporary table variable within the formula for a measure. The measure itself must return a scalar value.

Thanks @lbendlin and @Ahmedx.  Appreciate the insight about temporary considerations.  I notice I can generate a non-temporary table series if I use static numbers as the start and end points of the series-unfortunately not useful.  I guess as much as I want to create a dynamic table it is subject to measure considerations.  I'm looking at making a measure with the generateseries as an intermediate step-looks hopeful.  I'll see what comes of it.  Thanks again.

@YukonCornelius , did you ever achieve this? I'm facing a similar issue.

Ahmedx
Super User
Super User

unfortunately power bi does not support this
you can not get the value from the filter to create a table

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.