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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
ajimenez
Frequent Visitor

DAX

Hi everyone,

I have 2 tables:

ID_STEPSTEPGOAL
1A10
2B12
3C15
4D5

 

AND:

 

ITEMID_STEPSTEPDURATION
11111A5
11112B10
11113C15
11114D20
22221A10
22221A5
22222B10
22223C15
22224D20
22221A3
22221A8
33331A8
33332B0
33333C5
44441A0
44442B6

The relation is by the ID_STEP Field.

I need get the actual Goal Step and the Total Duration fields. The result I hope is this:

ITEMACTUAL_STEPGOAL STEPTOTAL DURATION
11112125
222211026
33333155
44442126

How can i do It?

 

Thanks!!

6 REPLIES 6
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @ajimenez,

 

Could you please mark the proper answer as solution or share the answer if it's convenient for you? That will be a help to the others.

 

Best Regards!
Dale

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

I appreciate your collaboration but the answer did not work for my specific case.

Thanks!!

 

 

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @ajimenez,

 

Maybe you don't need a DAX measure. Please have a look at the picture.DAX.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hasan
Resolver I
Resolver I

what is the ACTUAL_STEP at the last table?

@Hasan It is the STEP in which the ITEM is currently, it is the actual row. This field is the same ID_STEP, and I need get the Goal for this STEP and the total sum of field DURATION.

Thanks!!

The last table is an example, is a matrix in wich i want to get the values when, for example, i filter by the ITEM = 2222 in the STEP = 1, etc. This is another example for the ITEM 2222:

 

ITEMSTEPGOALDURATION
222211026
222221210
222231515
22224520

 

I only need to calculate de red fields, using DAX measures. 

Thanks!!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.