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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
alexadams78
Frequent Visitor

Circular Dependency

Hi All,

 

This is probably a simple issue, but i'm having a nightmare with a simple Calculate(Sum formula.

 

Using 1 table containing timesheet data, I have column for Hours Worked. I've managed to successfully create a formula which calculates the sum of hours worked, where a certain client ID isn't present:

 

Non-Jupiter Hours = CALCULATE(SUM(Timesheet[HOURS_WORKED]),'Timesheet'[CLIENT] <> "www.Jupiter.com")

 

I'm trying to write the converse of that to show ONLY Jupiter hours:

 

Jupiter Hours = CALCULATE(SUM(Timesheet[HOURS_WORKED]),'Timesheet'[CLIENT] = "www.Jupiter.com")

 

And this is where I get the circular dependancy issue. I would understand if I'm referencing other calculated columns in either formula, but I'm not!

 

Can someone please help?

 

Cheers,

 

Alex

1 ACCEPTED SOLUTION

Hi Baskar,

 

I actually tried this forumla before but as a calculated column. I just tried it as a calculated measure, and it worked!

 

Amazing, thanks for your help!

 

Cheers,

 

Alex

View solution in original post

5 REPLIES 5
Baskar
Resident Rockstar
Resident Rockstar

Hi @alexadams78

Jupiter Hours = CALCULATE(    SUM(Timesheet[HOURS_WORKED]),
                                                  Filter(Timesheet, 'Timesheet'
[CLIENT] = "www.Jupiter.com")
)

 

 

Try this one , Let me know if it is not helping u.

Hi Baskar,

 

I actually tried this forumla before but as a calculated column. I just tried it as a calculated measure, and it worked!

 

Amazing, thanks for your help!

 

Cheers,

 

Alex

Cheers 🙂 , Welcome 

Anonymous
Not applicable

Are you adding this as a calculated column or as a measure?

As a column!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.