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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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