Forum Discussion

ajimenez's avatar
ajimenez
Frequent Visitor
9 years ago

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

    • ajimenez's avatar
      ajimenez
      Frequent Visitor

      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!!

      • ajimenez's avatar
        ajimenez
        Frequent Visitor

        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!!

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Microsoft Employee

    Hi ajimenez,

     

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

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Best Regards!

    Dale

  • v-jiascu-msft's avatar
    v-jiascu-msft
    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

    • ajimenez's avatar
      ajimenez
      Frequent Visitor

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

      Thanks!!