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
tabuzahra
Helper II
Helper II

Matrix Row Total Is Wrong

Dears,

Thank you for usual support. Lovely Community!

 

Kindly, I have the below challenge and I'm seeking for your help and support

 

I have a matrix where it shows each date timesheet hours that have been logged for each employee. The values are correctly showing in each cell, where it shows also V in case the employee has taken a vacation on that day. Though the row subtotal are showing incorrectly in case there is a V in an employee who has taken a vacation on any date, where I want it to show his total hours that he has logged and ignoring the V values. Below is an image:

 

Capture.PNG

 

 

 

6 REPLIES 6
v-diye-msft
Community Support
Community Support

Hi @tabuzahra 

 

If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!

 

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

Hello,

Sorry, but I still haven't solved yet neither the mentioned solution worked out.

Hi @tabuzahra ,

 

please check this.

PBIX

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hi @tabuzahra ,

 

can you share sample data and your measure?

 

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hi Mwegener,

Thanks for your response. Below you can find a link with the sample data as well as the measures that I'm using:

Sample Data

 

Leave Hours & Vacations = if([Leaves - V]<>"V" ,[OTL Hrs Sum],'HR Leaves'[Leaves - V] )

Leaves - V = CALCULATE(if([Leave Without Weekends In Days]>=1,"V",[OTL Hrs Sum]),USERELATIONSHIP('HR Leaves'[Vacation Date],'Calendar'[Date]))

Hi @tabuzahra,

 

try this as quick and dirty solution.

 

Leaves - V = CALCULATE(if([Leave Without Weekends In Days]>=1 && [OTL Hrs Sum] = 0 ,"V",[OTL Hrs Sum]),USERELATIONSHIP('HR Leaves'[Vacation Date],'Calendar'[Date]))

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support. 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.