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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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