Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi community,
I have the following visual:
I want to add a measure that calculates the difference like this:
Both columns Worked.1 and Worked Hours come from two different tables that are connected through a relationship. Is there another way to add a difference column in the Visual that keeps the same layout as the first picture, and does not create duplicates of the users?
The table 'apticproject view_workedtime' looks like this:
the table v_rpt_apticcustom_Employee_Time_Billingv6 looks like this:
My end goal is to create another column in the visual that uses a measure and looks something like this =IF([Diff]>=0,[[Worked Hours]],[[Worked.1]]). How can I write this measure properly? Or should a calculated column be used instead of a measure?
Solved! Go to Solution.
Hi @amitchandak I managed to solve the issue, I had a department column that was causing the duplications, so I removed that. The department column was from the employee table but it was not connected to any other table.
looks much better now:
Now I want another column in the visual that uses a measure and looks something like this =IF([Diff]>=0,[Worked Hours],[Worked.1]). How can I write this measure properly? Or should a calculated column be used instead of a measure?
This measure worked for me:
Hi @amitchandak I managed to solve the issue, I had a department column that was causing the duplications, so I removed that. The department column was from the employee table but it was not connected to any other table.
looks much better now:
Now I want another column in the visual that uses a measure and looks something like this =IF([Diff]>=0,[Worked Hours],[Worked.1]). How can I write this measure properly? Or should a calculated column be used instead of a measure?
This measure worked for me:
hi @amitchandak, it's a one to many relationship
the yellow highlighted at the top is worked time table, the bottom left is the employee table and the bottom right is the user table which connects the tables based on userid (worked time) and memberid (employee table)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |