Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tananich
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

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
Employee
Employee

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.

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.