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

Top Solution Authors