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, I created a table where first column is a GENERATESERIES.
Now I want to add columns likt this :
Columns with different increment values based on the first generateseries column.
Value | 5series | 10series |
1 | 5 | 10 |
2 | 5 | 10 |
3 | 5 | 10 |
4 | 5 | 10 |
5 | 5 | 10 |
6 | 10 | 10 |
7 | 10 | 10 |
8 | 10 | 10 |
9 | 10 | 10 |
10 | 10 | 10 |
11 | 15 | 20 |
12 | 15 | 20 |
13 | 15 | 20 |
14 | 15 | 20 |
15 | 15 | 20 |
16 | 20 | 20 |
Is here a measure for?
Using an IF condition to create these calculated columns seems not a good solution...
Thanks!
Julie
Solved! Go to Solution.
How about this:
Table TEST =
ADDCOLUMNS (
GENERATESERIES ( 1, 3000, 1 ),
"Series 5", ( QUOTIENT( [Value] - 1, 5 ) + 1 ) * 5,
"Series 10", ( QUOTIENT( [Value] - 1, 10 ) + 1 ) * 10
)
Hi,
Here is one way to do this:
5 series:
Proud to be a Super User!
Hi,
Here is one way to do this:
5 series:
Proud to be a Super User!
How about this:
Table TEST =
ADDCOLUMNS (
GENERATESERIES ( 1, 3000, 1 ),
"Series 5", ( QUOTIENT( [Value] - 1, 5 ) + 1 ) * 5,
"Series 10", ( QUOTIENT( [Value] - 1, 10 ) + 1 ) * 10
)
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 |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |