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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
dosc_21
New Member

Generate a series dinamically based on a selected range

Hi,

I have the table below, and when I select line 2 on table visual, I want to generate a series of numbers from 100 to 105. I've seen a similar question, but I want to generate the series according the selected value. If I select more than one row it shoud generate the series only for the selected rows.

groupfromto
group123
group1100105
group21520
group210001013

 

expected result

groupnumber
group1100
group1101
group1102
group1103
group1104
group1105

 

Is it possible?

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dosc_21 , A slicer value can not control new table generation. So if you need a table you best bet is

 

generate(Table, generateseries([from],[to]))

 

If now then you have create a measure with help from an independent table

 

Series = generateseries(Min(table[From]), Max(Table[to]))

 

Then create a measure and use that along with Series value column

 

Sumx(filter(Table, Table[from] <= Max(Series [Value])  && Table[to] >= Max(Series [Value])  ), Table[Group])

 

use this measure with the value column from the series table

 

very similar to

Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@dosc_21 , A slicer value can not control new table generation. So if you need a table you best bet is

 

generate(Table, generateseries([from],[to]))

 

If now then you have create a measure with help from an independent table

 

Series = generateseries(Min(table[From]), Max(Table[to]))

 

Then create a measure and use that along with Series value column

 

Sumx(filter(Table, Table[from] <= Max(Series [Value])  && Table[to] >= Max(Series [Value])  ), Table[Group])

 

use this measure with the value column from the series table

 

very similar to

Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors