cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

View solution in original post

3 REPLIES 3
v-jiascu-msft Super Contributor
Super Contributor

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

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 195 members 1,874 guests
Please welcome our newest community members: