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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Justas4478
Post Prodigy
Post Prodigy

Values to high does to data structure

Hi, I have holiday report and for majority is working fine.

There is problem with 'Leave Brought Forward', 'Leave Booked' and 'Leave Balance' data when I get it in to power bi.

As you can see in the sample picture below shows that employee 80419990 has 'Leave Brought Forward' 45 hours but it is recorded 19 time when it is actualy only once.

Since this data seams to be recorded for each row per person it massively inflated numbers when I use it in power bi, same goes for 'Leave Booked' and 'Leave Balance' columns.

Data holiday.PNG 

I can not change the excel file itself since I am not the once extracting it and it gets replaced every week any way so trying to clean it every week would be waste of time.

So I need to find solution in power bi desktop.

These are the numbers I get when I add them to matrix table.

Justas4478_0-1712321198864.png 

'Entitlment' data is correct since they are only recorded once as you can see in first sample picture.

If there is any questions please let me know.

If it helps here is data samle file: https://we.tl/t-9Lsfnyn0c7 
Thanks

1 ACCEPTED SOLUTION

@lbendlin I manage to work out solution.
I dublicated main table and deleted 'Leave Brought Forward', 'Leave Booked' and 'Leave Balance' columns from the original table.
Then on the dublicated I removed all the columns except 'Staff Number','Full Name','Start Date' and 'Leave Brought Forward', 'Leave Booked' and 'Leave Balance'.

After that i grouped dublicate table like this.

Justas4478_0-1712657146057.png

After that I merged both tables.

Justas4478_1-1712657358277.png

And expanded grouped table

Justas4478_2-1712657492158.png

That seams to have solved my problem.
There might be different way to do this but its seams to be working without any problems.



 

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Seems to be a very small problem, only affecting two employees,

 

I would solve that with a MAX measure.

 

lbendlin_0-1712362019402.png

 

@lbendlin That is only if we look at 'Leave Brought Forward' column.
'Leave Booked' and 'Leave Balance' still has that problem and across all employees.

I dont use 'Leave Brought Forward' in my matrix tables.

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

@lbendlin I manage to work out solution.
I dublicated main table and deleted 'Leave Brought Forward', 'Leave Booked' and 'Leave Balance' columns from the original table.
Then on the dublicated I removed all the columns except 'Staff Number','Full Name','Start Date' and 'Leave Brought Forward', 'Leave Booked' and 'Leave Balance'.

After that i grouped dublicate table like this.

Justas4478_0-1712657146057.png

After that I merged both tables.

Justas4478_1-1712657358277.png

And expanded grouped table

Justas4478_2-1712657492158.png

That seams to have solved my problem.
There might be different way to do this but its seams to be working without any problems.



 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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