Forum Discussion

drinko's avatar
drinko
Icon for Helper I rankHelper I
4 years ago
Solved

Measure or Calc Column to have Monthly Amount Columns

I would like to have a Power BI Table with the following Columns: Account | Account Desc | January | February | March ... with the "GL amounts" totaled under each month in the proper columns.  Idea...
  • amitchandak's avatar
    4 years ago

    drinko , We can have column in Power query on Dax like

     

     

    DAX - new column

    Month Type = Switch( True(),
    eomonth([Date],0) = eomonth(Today(),0),"CM" ,
    eomonth([Date],0) <  eomonth(Today(),0),"CM-" & datediff(eomonth([Date],0) ,eomonth(Today(),0), Month)
    Format([Date],"MMM-YYYY")
    )

     

    Use matrix visual