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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.

Top Solution Authors