Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello, hope you all doing good.
I have the following table and what I need to do is to create a column where it needs to be the sum of column "Throughput" where "TimeStamp number" column is between "MinHoraGroupBy" and "MaxHoraGroupBy" columns for each row. So for example, first row I need to compare every "TimeStamp number" with the first "MinHoraGroupBy and MaxHoraGroupBy" and get the sum of "Throughput" values where the condition is true and so on for every row, second row I need to compare all "TimeStamp number" values with second row of "MinHoraGroupBy" and "MaxHoraGroupBy"
I got a result sample for first row in Excel but I just could do it for first row
That column P returns 1 if the TimeStamp number column for each row is between the first interval of "MinHoraGroupBy" and "MaxHoraGroupBy" so column Q is the sum of "Throughput" if value is 1, but I'd need to create a new column for each row and that's not the case
Solved! Go to Solution.
A new column =
sumx(filter(Table, Table[TimeStamp number] >= earlier(Table[MinHoraGroupBy]) && Table[TimeStamp number] <= earlier(Table[MaxHoraGroupBy]) ), [Throughput])
Thank you! I just checked that in a deep way and it worked!
A new column =
sumx(filter(Table, Table[TimeStamp number] >= earlier(Table[MinHoraGroupBy]) && Table[TimeStamp number] <= earlier(Table[MaxHoraGroupBy]) ), [Throughput])
User | Count |
---|---|
59 | |
21 | |
18 | |
16 | |
15 |
User | Count |
---|---|
85 | |
54 | |
45 | |
39 | |
21 |