Forum Discussion

Chetan_Y's avatar
Chetan_Y
New Member
2 years ago
Solved

DAX code for the following question

Hi, I am stuck with the problem and seeking help from the community. 

Problem : I want the sum of first month of every Quarter Example :

Jan,Feb,Mar-Q1

Apr,May,Jun-Q2....so on till Dec. If I choose Feb it should show the Jan month Total. Means it should sum only the first month of every quarter in Power Bi Please help me with the DAX code in getting this answer.

  • Create a measure using 'Calculate' with filter of ALL(Date) & STARTOFQUARTER(Date), this will bring your desired numbers, which is for first month of quarter (based on selected month).

2 Replies

  • Create a measure using 'Calculate' with filter of ALL(Date) & STARTOFQUARTER(Date), this will bring your desired numbers, which is for first month of quarter (based on selected month).

    • Chetan_Y's avatar
      Chetan_Y
      New Member

      Thank you sunnsonofindia for your answer. This was exactly I was Looking for. You made my day😊😊😊😊👌👌👌👌