cancel
Showing results for
Did you mean:
Helper III

## End of year December month or latest month data in Dax

Hi,

I need pick past year december Amounts and current year latest month amount value by using dax measure. Please find the screenshot below. I need dax measure for Result column.

1 ACCEPTED SOLUTION
Super User

Have year column or use date table and have year there

Year = year([date])

A measure like

Calculate( lastnonblankvalue(Table[Date]), Sum(Table[Amount]) , Allexcept(Table, Table[Year]))

check if needed https://youtu.be/yPQ9UV37LOU

Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
3 REPLIES 3
Super User

Have year column or use date table and have year there

Year = year([date])

A measure like

Calculate( lastnonblankvalue(Table[Date]), Sum(Table[Amount]) , Allexcept(Table, Table[Year]))

check if needed https://youtu.be/yPQ9UV37LOU

Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
Helper III

Hi Amit,

Thank you for the code. it works fine and the video reference also very helpful to learn new things. Rock it.

Helper III

Pls help me on this.

Announcements