cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tananich Frequent Visitor
Frequent Visitor

Sum of values by month

Hello everyone! 

I have a Power Bi report connecting to dataBase via Direct Query. I have a grid as in the picture below:

grid.JPG

Each employee has norm hours to be reported per month, for example this number should be 168. Reported all - these are total reported hours per month. And I also have mismatch in Over/Underreported hrs column, this is difference between norm hrs and actually reported.

My issue is that in DataBase I have every row as a day, and workload is 8 hrs, but in Power BI I need  this to be displayed for month (I use slicer for month). I want normal and reported hrs to sum by employee, while Over/Under will be difference.
I want this to be displayed as below

grid 2.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
tananich Frequent Visitor
Frequent Visitor

Re: Sum of values by month

Hello @v-jiascu-msft again, I jave managed to fix thist myself by turning columns into measures and using function FILTER  to this measure, so basically in my grid I only have filtered a column while the other columns show sum by month

regards

3 REPLIES 3
Community Support Team
Community Support Team

Re: Sum of values by month

Hi @tananich,

 

How does the original data look like? Are they from one table? Actually, this is a basic calculation. You can get it easily. Please refer to the snapshot below.

Sum-of-values-by-month

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tananich Frequent Visitor
Frequent Visitor

Re: Sum of values by month

Hi @v-jiascu-msft, thank you for the answer, however the screenshot is not available for me, can you please insert it again?

tananich Frequent Visitor
Frequent Visitor

Re: Sum of values by month

Hello @v-jiascu-msft again, I jave managed to fix thist myself by turning columns into measures and using function FILTER  to this measure, so basically in my grid I only have filtered a column while the other columns show sum by month

regards