The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello, i have a table with 3 columns: "key", "value" and "timestamp"
and i need to sum all the values of key "16" between 1 PM and 2 PM, then 2 PM and 3 PM and so on.
Hope someone can help me with this, thanks in advance.
Solved! Go to Solution.
Create a column that will only hold the [Bracket]s ("1PM-2PM", "2PM-3PM",...) and then create another table with a simple formula:
[Table] =
SUMMARIZECOLUMNS(
T[Bracket],
treatas(
{"16"},
T[key]
),
"Count", SUM( T[value] )
)
Create a column that will only hold the [Bracket]s ("1PM-2PM", "2PM-3PM",...) and then create another table with a simple formula:
[Table] =
SUMMARIZECOLUMNS(
T[Bracket],
treatas(
{"16"},
T[key]
),
"Count", SUM( T[value] )
)
Thank you!
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
13 | |
10 | |
10 | |
9 |