Forum Discussion
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).
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.
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.
2 Replies
- v-xuding-msft
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.
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.
- AnonymousNot 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.