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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lg1551
Resolver II
Resolver II

Create a Data Table With a Specified Number of Rows

I need to create a data table in DAX with a specified number of rows, based on the value found in a MAX measure that I have in my model. Any ideas?

 

I'm basically needing to generate a row for each value, 0 - (Whatever number is in the measure). I will then use these rows as columns in a bar chart to achieve a "hack" to the visual that I need.

 

The MAX MEASURE I have shouldn't contain a value of more than around 500-600 so the table I create wouldn't have any more rows than that.

1 REPLY 1
vicky_
Super User
Super User

Number 0-600 = GENERATESERIES(0, 600) will get you a table with numbers 0-600. I do not recommend using your dax measure to specify the max number, as it won't actually update unless you refresh data - just generate more numbers than you need, and then use visual filters to limit the values displayed in your final visual. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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