Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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
Solved! Go to 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
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
Are you adding this as a calculated column or as a measure?
As a column!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 63 | |
| 34 | |
| 32 | |
| 21 |