Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a table with (among other things) colomn with ID, value and hour
I'm looking for a way to sum the value column into a single row per id and hour. So that I can make some further calculations based on this summarized value.
Example of how data is now:
ID | Hour | Value |
1 | 3 | 5 |
1 | 3 | 10 |
2 | 3 | 7 |
2 | 3 | 3 |
3 | 3 | 4 |
Expected results:
ID | Hour | Value |
1 | 3 | 15 |
2 | 3 | 10 |
3 | 3 | 4 |
Solved! Go to Solution.
Did a referencetable in transform data view, and grouped by id, hour etc
Can you show the DAX statement in a post?
Did a referencetable in transform data view, and grouped by id, hour etc
create a measure:
TotalHours = SUM( 'tableName'[Value])
Then add this measure to the table
My issue is then when I try to make the other measures that are based on this, they won't calculate correcty.
My next calcualtion I want to count the number of hours/(row) when the value is >20. Which I've encountered issues with when doing it this way.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
60 | |
58 | |
54 | |
36 | |
33 |
User | Count |
---|---|
79 | |
66 | |
45 | |
44 | |
42 |