Forum Discussion

WillianRamos's avatar
WillianRamos
Frequent Visitor
3 years ago

Goal value by Week

Hi All, 

 

I need some help........as you can see, I have a total goal value, and if I put the month in the matrix it kind of divides the total goal value by month, just like you see in the Image.

 

pray when I put the number of the week by month (W1, W2, W3, W4, W5) it continues to show the total value of the month. I would like some help to resolve this issue.

 

matriz values

 

 

 

 

 

 

 

 

My DAX code of Goal By Week

 

Goal by Week =
CALCULATE([Goal Total],
            FILTER(ALL(dCalendario[Week]),
dCalendario[Week] <= MAX(dCalendario[Week])
                     )
)

2 Replies

  • vanessafvg's avatar
    vanessafvg
    Community Champion

    can you provide some sample data in text format, or share the text values not the screenshot.

     

    also please show what the data looks like in your table, difficult to understand the problem without these details.  How are you joining the date table to you transactional data

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi WillianRamos ,

     

    Please try

    Goal by Week =
    CALCULATE([Goal Total],
                FILTER(ALL(dCalendario[Week]),
    dCalendario[Month] = MAX(dCalendario[Month])
                         )
    )

    If you still have doubts, please share the sample data and expected results.

     

    Best Regards,

    Stephen Tao

     

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