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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
marpisa
Regular Visitor

Data Sheet as difference of two data sheets

Hi I have this situation:

Office365 "Users List (Title, Id)

Sharepoint List "AssignedHours" ("UserId", "AssignedHours")

Sharepoint List "TimesheetHours" ("UserId", "TimesheedHours")

 

I have two sheet visuals:

SUM(AssignedHours[AssignedHours])

SUM( TimesheetHours[TimesheetHours])

 

to display the totals for a single User.

 

My problem now is to display in another card the difference, for the selected user, of SUM(AssignedHours[AssignedHours]) - SUM( TimesheetHours[TimesheetHours]), so in the example 807

I have tried to get the visuals value, but I couldn't do it

marpisa_0-1623755249125.png

 

Any suggestions?

Thanks

Marco

 

How can I do?

 

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @marpisa 

According to your description, I think you can just use this measure to achieve this:

 

Difference = [AssignedHours1]-[TimesheetHours1]

 

vrobertqmsft_0-1623924843812.png

 

And you can get what you want.

You can download my test pbix file below

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @marpisa 

According to your description, I think you can just use this measure to achieve this:

 

Difference = [AssignedHours1]-[TimesheetHours1]

 

vrobertqmsft_0-1623924843812.png

 

And you can get what you want.

You can download my test pbix file below

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@marpisa , based on what I got, You need to create a common user table and join with both and filter using that new table 

Bridge Table: https://www.youtube.com/watch?v=Bkf35Roman8&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=19

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors