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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Find minutes taken to complete objective, multiple objectives per client

Hi all,

 

I have a model (simplified version shown below)

 

I want to find out how many units of time it takes a client to complete an objective (As shown E2-E6).

Objectives are in the objective info table and each client can have multiple objectives. The time taken to complete an objective is in the work time info table.

 

I am looking for something that sums up all the time spent on an objective prior to the outcome date.

 

And as another part. The work a client does can fall under different work types and I would also like to show the total time taken to achieve the objective cut by that work type (clients can have multiple of the same objectives with different work types) (Shown in F3-F6)

 

Both work time and objective time tables are linked to a date table and a client table. Neither has the active date relationship. (the client table has this active relationship)

 

I think it's best to have these metrics as a table columns as opposed to measures. But am open if you see a different way.

 

The end goal is to use these measures to analyse how long it takes to complete objectives: averaged, difference between months etc.

 

Thanks!!!!

 

image.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I have created a simple sample,please refer to my pbix file to see if it helps you.

Create 2 columns.

TIME spent to compelte = 
VAR _client = 'objective inofr'[Clients]
VAR _date = 'objective inofr'[Outcome date]
VAR _total = SUMX(FILTER(ALL('Table'),'Table'[Client]=_client&&'Table'[Workdate]<=_date),'Table'[Time spent])
RETURN
_total
TIME spent worktime to compelte = 
VAR _client = 'objective inofr'[Clients]
VAR _date = 'objective inofr'[Outcome date]
var _worktype='objective inofr'[Work type]
VAR _total = SUMX(FILTER(ALL('Table'),'Table'[Client]=_client&&'Table'[Workdate]<=_date&&'Table'[Work Type]=_worktype),'Table'[Time spent])
RETURN
_total

vpollymsft_0-1678068877875.png

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

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
Anonymous
Not applicable

Hi @Anonymous ,

I have created a simple sample,please refer to my pbix file to see if it helps you.

Create 2 columns.

TIME spent to compelte = 
VAR _client = 'objective inofr'[Clients]
VAR _date = 'objective inofr'[Outcome date]
VAR _total = SUMX(FILTER(ALL('Table'),'Table'[Client]=_client&&'Table'[Workdate]<=_date),'Table'[Time spent])
RETURN
_total
TIME spent worktime to compelte = 
VAR _client = 'objective inofr'[Clients]
VAR _date = 'objective inofr'[Outcome date]
var _worktype='objective inofr'[Work type]
VAR _total = SUMX(FILTER(ALL('Table'),'Table'[Client]=_client&&'Table'[Workdate]<=_date&&'Table'[Work Type]=_worktype),'Table'[Time spent])
RETURN
_total

vpollymsft_0-1678068877875.png

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

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

Anonymous
Not applicable

Hi @Anonymous 

 

Thanks for the solutiuon, works like a dream

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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