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
Anonymous
Not applicable

Unable to use GenerateSeries() for decimal values.

Hi All,

 

I am unable to use GenerateSeries  for decimal values. I am generating a series from -1 to 100 as below  GENERATESERIES(-1, 100, .01).

The numbers are generating the value as 2.0000009, 2.0000009, this is happening with random numbers.I am using decimal number and rouded off to 2 decimal place still I am facing this issue.
Could any one know help me on this.
1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

It is by design. You could change the format of data type to decimal number. Or you could use some functions to transform the data.

1.PNG

Column = ROUND('Table'[Value],2)

Table 3 = SELECTCOLUMNS(GENERATESERIES(-1,100,0.1),"Values",CURRENCY([Value]))

Reference:

https://www.sqlbi.com/articles/generating-a-series-of-numbers-in-dax/

 

Best Regards,

Xue Ding

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

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

I faced a similar issue but the problem is not with the round function or the format of the column. The problem is the single value slicer itself, so if you still get the same error, there is detailed information about another method on the link below.

https://medium.com/@ezginazaslankara/the-solution-of-unable-to-input-number-parameter-in-power-bi-98...

v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

It is by design. You could change the format of data type to decimal number. Or you could use some functions to transform the data.

1.PNG

Column = ROUND('Table'[Value],2)

Table 3 = SELECTCOLUMNS(GENERATESERIES(-1,100,0.1),"Values",CURRENCY([Value]))

Reference:

https://www.sqlbi.com/articles/generating-a-series-of-numbers-in-dax/

 

Best Regards,

Xue Ding

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

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

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