generateseries
4 TopicsI want to generate a series with multiple start and end values
I have a starting data table in DAX Task Initial Interval Repeat Interval Initial Life Final Life Task_1 3 2 6 20 Task_2 4 3 7 18 I want to use generateseries to repeat the task values starting with Initial Interval and then increment by Repeat Interval till its less than or equal to Initial life then start increment by Initial Interval and then increment by Repeat Interval till Inital life or Final Life which ever comes first. As listed in the table below Task Initial Interval Repeat Interval Initial Life Final Life Series Life Iteration Series Explained Task_1 3 2 6 20 3 Life_1 Starts with 3 (Initial Interval) Task_1 3 2 6 20 5 Life_1 3+ 2 (Add Repeat Interval) Task_1 3 2 6 20 6 Life_1 Add Repeat Interval 5 + 2 = 7 is greater than Initial life 6. so take 6 Task_1 3 2 6 20 9 Life_2 Starting task_1 with Life_2 6 + 3 = 9 Task_1 3 2 6 20 11 Life_2 9 + 2 (Repeat Interval) = 11 Task_1 3 2 6 20 12 Life_2 adding (Repeat Interval) 11 + 2= 13 but is greater than 12 (Multiple of 6 Initial Life) so take 12 Task_1 3 2 6 20 15 Life_3 starting Task_1 with Life_3 12 + 3 = 15 Task_1 3 2 6 20 17 Life_3 15 + 2 (Repeat Interval) = 17 Task_1 3 2 6 20 18 Life_3 17 + 2 = 19 is greater than 18 multiple of 6 Initial life Task_1 3 2 6 20 20 Life_4 Starting Task_1 with Life_4 18 + 3 = 21 greater than 20. so take 20 End of Task_1 Task_2 4 3 7 18 4 Life_1 Similar process for Task_2 Task_2 4 3 7 18 7 Life_1 Task_2 4 3 7 18 11 Life_2 Task_2 4 3 7 18 14 Life_2 Task_2 4 3 7 18 18 Life_3 We need not create columns Life Iteration and Series Explained. Only Series column is required. How can we create this sort of series. Please helpSolved1KViews0likes5CommentsGenerateseries is not working with a parameter and single value slicer
I am trying to create a single value slicer I have created a parameter "Target Parameter" and a table "Target" My parameter is "Target Parameter = GENERATESERIES(MIN(Target[Target]),MAX(Target[Target]))" (I have also tried adding the increment of 1 with the same result) the Target Table has 1 column with numbers from 0 to 1048576 generated from a linked excel file. Data type is Decimal Number but I have tried Whole and Fixed as well. When I look at the tables, I don't see any error in the sequenced numbers. When I enter a value such as 100000 into the associated slicer, the number in the slicer automatically changes to 99516 When I enter 2 it is automatically changed to 1 When I enter 1048570 is automatically changed to 1048576 Every number I have tried is changed to a different value except the largest number 1048576 Is there anyway to get it to accept and use the value entered? I intend to use the entered number in other calclations.1.4KViews0likes1CommentUnique days in the specified range
Hi Everyone, I have a table as specified in the below screenshot. I'm trying to calculate total unique days in the date range. In this example, expect output is 30 How can we do it in DAX? This calculation needs to happen dynamically and the result will be used in remaining calculations. Hence PowerQuery solution is not suitable.Solved801Views0likes2CommentsGENERATESERIES DAX function not incrementing accurately
Hello All, I ran into an issue with GENERATESERIES Dax. I Generate a series like below- Adjusted Goal = GENERATESERIES(0, 50000, 1) I want the user put the input value to see the impact of it on overall performance. The issue is when the user put 50000, the value show 48651, when the user put 15000, the value shows 14985 But if the user put 50, 100, the value is OK. Anyone knows what's the solution of it?Solved1.9KViews0likes5Comments