Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi guys, I need some help on a hopefully easy piece of code. But it has a longer explanation that I would like... sorry for the wall - I tried to cut it down to be as short as possible.
I am trying to calculate total bonus time for a team, using the following tables:
This is the situation:
This is what I am trying to calculate:
Now, I have been able to calculate most of this myself, but my sloppy workaround uses loads of measures which dont really work with a slicer.
This is how i did it:
Measure 0:
Measure 1:
Measure 2:
Measure 3:
Measure 4:
From these, I can see (and slice) Total Bonus Days Taken. I can also see Total Bonus Available, but I cannot slice it by name (so idk how many bonus days Carl has left, for example)
! OK ! Thats my long storybook of a question!
I have re-read this a bunch of times now, and I hope it all makes sense. But please do not hesitate to ask questions and I can help out as much as possible.
I would be greatly appreciative of anyone that could help out. This is all super complex for me, at least at the skill level I have atm, but hopefully this is a pretty easy fix for some of the datanaughts out there.
Kindest regards,
Stef =]
Hi @StefanM
It would be better if you could share your data model file which could reproduce your scenario and your desired output. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.
How to Get Your Question Answered Quickly
Regards,
Cherie
Hey @v-cherch-msft - Thats a great idea! It would have helped to make the OP a little smaller too - I will do that from now on.
As an update, you can find the file linked here. The first tab shows the comments from the OP. The Second tab is updated with my tests.
@Nickgastaldi- I actually dont think its a relationship problem, but rather due to the way I am creating the "Months Since Start" measure. You can see that it doesnt update based on the timeline selected. Its placed in the top right "Join Date & Status" table.
Do you guys have any ideas on how I could improve this?
seem to me you can slice it by name because the slicer you are applying is not in the same table as the information you are trying to slice,
i see 2 possible easy fixes:
- you need to review you data modeling (connection between the two tables)
- use in the slicer the "name" variable of the same table you are trying to slice
if neither of those works for you, measures need to be redesigned , that would take a little more knowledge on you data model
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 49 | |
| 42 |