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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Gdh1091
Regular Visitor

Using the User's selected value from one GenerateSeries function as a parameter in another.

Hi, I'm trying to allow the user to set a series of 'bandings' which the dashboard will then use to group items of corresponding value together.  For example, I imagine the end output might look something like:

 

Lower BandingUpper BandingTotal count of items valued between those bandsTotal value of items valued between those bands
01006432
10050031,123
500100042,467

 

I basically want to allow the user to select the values of the second column using a series of parameters, but I want to set the lower bound of each GenerateSeries function to whatever the user's selection was for the previous upper band. So the GenerateSeries for the first band might look like this:

 

GENERATESERIES( 0, 10000, 1)

 

the second might look like:

 

GENERATESERIES( [Band 1 Selection Value], 10000, 1)
 
and the third like this:
 
GENERATESERIES( [Band 2 Selection Value], 10000, 1)
 
Each time ensureing the user cannot select a value that overlaps the previous banding and therfore won't produce an acurate result.
 
However... the way I've done this here doesn't seem to work. Has anyone got any suggestions?
 
Many thanks in advance.
1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @Gdh1091 ,

 

In GENERATESERIES, Returns a table with one column, populated with sequential values from start to end. It is equivalent to a calculation table, and the contents of the calculation table cannot be filtered along with it.

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

Regarding the initial value of GENERATESERIES, you can check the following link:

https://community.powerbi.com/t5/Desktop/How-to-generate-series-based-on-measure-values/td-p/1375207

https://community.powerbi.com/t5/Desktop/GENERATESERIES-with-dynamic-EndValue/td-p/792822

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.