I want to create a chart in which I want to show a measure(profit %) that is already calculated, but the problem is I want to show it as line chart on the basis of last 12 months.
I have a column in database that contains all the date(Master table). I am getting date of last year like this:
Last 12 months date= (DATE(YEAR([today's_Date]),MONTH([today's_Date]),day([today's_Date])))-365
that is giving me 2 feb 2016 12:00:00 AM
next I am doing
Last12_Now = DATESBETWEEN(TIMESHEETANALYSISCUBE[TRANSDATE],[Last 12 months],[today's_Date])
but it's not working.
so basically I want to show that measure (profit %) from feb 2016 to feb 2017.
How to do this in Power BI using DAX ?
Thanks for your time.