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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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

3 REPLIES 3
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.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors