Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone...
I am trying to generate a series of numbers using DAX but I need to have better control over the values. The desired outcome would be the following columns:
The resulting table would be:
Period Value
1 500
2 1000
3 1500
4 2500
...
57 9500
58 10500
59 9500
...
102 1500
103 1000
104 500
I have been working with GENERATESERIES but it doesn't allow any other parmaters beyond start/finish. Likewise, RANDBETWEEN doesn't allow any parmaters to influence the numbers generated.
Any bright ideas would be appreciated...
Thanks,
Solved! Go to Solution.
@JohnThomas Wouldn't you want to use ADDCOLUMNS around a GENERATESERIES and use NORM.DIST?
@JohnThomas Wouldn't you want to use ADDCOLUMNS around a GENERATESERIES and use NORM.DIST?
@Greg_Deckler thanks for the suggestion. I'll take a look at that and let you know what I find out. I'll try to narrow down the problem to something that's a bit more specific with some sample data.
Thanks!
@JohnThomas or something like:
Table 2 =
ADDCOLUMNS(
GENERATESERIES(1,104,1),
"Value1",10500 - ABS(58 - [Value]) * 184
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |