Forum Discussion

sivasrao's avatar
sivasrao
Icon for Helper III rankHelper III
3 years ago
Solved

Sales per Month with Year

Hi All, How can I calculate the year-wise "Sales per Month"? The below table is the source table.   The Target Table is  Thank you in advance. Note: "---" means the value is present...
  • sivasrao's avatar
    sivasrao
    3 years ago

    Finally, I got a logic for this requirement.

    Step 1:

    Month Year = FORMAT(sales(Sales Date),"mmm-yyyy")

    Step 2:

    SalesPerMonth = CALCULATE(SUM(Sales[Amount]),
                               FILTER('Sales',(Sales[Month Year]=EARLIER(Sales[Month Year]))
                               ))
    Thank you for all.

    Note: This is a new Column only. Not a measure.