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.
Hi All,
I am actually doing the summation for row by row by using the column Current HC and dept flag but the result was coming unexpected. can you please suggest the expected output mentioned in trail mail. any help appreciate it.
Dept Flag | Month | Current HC |
Admin | 6/1/2021 | 11 |
Admin | 7/1/2021 | 11 |
Admin | 8/1/2021 | 11 |
Admin | 9/1/2021 | 11 |
FA | 6/1/2021 | 69 |
FA | 7/1/2021 | 69 |
FA | 8/1/2021 | 69 |
FA | 9/1/2021 | 69 |
Audit | 6/1/2021 | 98 |
Audit | 7/1/2021 | 98 |
Audit | 8/1/2021 | 98 |
Audit | 9/1/2021 | 98 |
Expected Output:
Dept Flag | Month | Current HC | Expected Output |
Admin | 6/1/2021 | 11 | 11 |
Admin | 7/1/2021 | 11 | 22 |
Admin | 8/1/2021 | 11 | 33 |
Admin | 9/1/2021 | 11 | 44 |
FA | 6/1/2021 | 69 | 69 |
FA | 7/1/2021 | 69 | 138 |
FA | 8/1/2021 | 69 | 207 |
FA | 9/1/2021 | 69 | 276 |
Audit | 6/1/2021 | 98 | 98 |
Audit | 7/1/2021 | 98 | 196 |
Audit | 8/1/2021 | 98 | 294 |
Audit | 9/1/2021 | 98 | 392 |
Expected output column is coming summation for each department.
Regards,
Rajendra
Proud to be a Super User! | |
Solved! Go to Solution.
This is a cumulative total rather than a summarization.
See if this posts helps:
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-month-per-Product/m-p/10863...
This is a cumulative total rather than a summarization.
See if this posts helps:
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-by-month-per-Product/m-p/10863...
Let me share the expected out put:
Below is the logic i have been used. it is deriving the cummulative sum but dept flag and date wise the date need to pick the initial value and need to perform the sum.
I have used the below logic in measure:
calculate ([total HC],FILTER(ALL(Table1),Table1[Dept Flag]<=max(Table1[Dept Flag])),FILTER(ALL(Table1),Table1[month]<=Table1[month]))))
Proud to be a Super User! | |
Output result expecting :
cummulative summation based on dept and datewise.
Dept Flag | Month | Current HC | Expected Output |
Admin | 6/1/2021 | 11 | 11 |
Admin | 7/1/2021 | 11 | 22 |
Admin | 8/1/2021 | 11 | 33 |
Admin | 9/1/2021 | 11 | 44 |
FA | 6/1/2021 | 69 | 69 |
FA | 7/1/2021 | 69 | 138 |
FA | 8/1/2021 | 69 | 207 |
FA | 9/1/2021 | 69 | 276 |
Audit | 6/1/2021 | 98 | 98 |
Audit | 7/1/2021 | 98 | 196 |
Audit | 8/1/2021 | 98 | 294 |
Audit | 9/1/2021 | 98 | 392 |
Proud to be a Super User! | |
Sorry I dont understand.
Please can you use the icon next to the [HTML] and copy and paste as a table rather than text,
and better explan the problem.
Thank you rajendraongole1 for the better example.
It looks like you want a running total by Department
When you produce a table visual it creates default filters for each row, in this case product and date.
So you need to use a command to get the end date of your current row.
Then remove the date filter but keep the department filter.
Then sum the amount for all the dates up to and inclusing the end date.
Here are 2 solutions ....
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 |
---|---|
77 | |
73 | |
58 | |
35 | |
31 |
User | Count |
---|---|
99 | |
57 | |
56 | |
46 | |
40 |