Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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])
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
33 | |
16 | |
13 | |
10 | |
8 |
User | Count |
---|---|
59 | |
20 | |
12 | |
11 | |
10 |