Forum Discussion
Need Help with Dax
- 9 months ago
Hi shahrukhgaffar0 ,
try sample pbix.
Please give kudos or mark it as solution once confirmed.
Thanks and Regards,
Praful
Yes, We Can do this using Unpivoting the Data But there are Many things which I think I lost that One since this is Only i showed My Require columns but we are Consider Upto 15 Columns to be in Model and Then Also We have Many Project names
Is this Possible Becuase I created a Calcualted Table but I failed to Populate this Data
FILTER(TABLE_,NOT ISBLANK([EventDate]))
shahrukhgaffar0 , this table should be done in power query, will be more dynamic. Check the video in last post
Now, if you select a year and you need the year cumulative, you can use ytd
example measures
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))
Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))
If you want cumulative across year use this
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))
or
Cumm Based on Date = CALCULATE([Net], Window(1,ABS,0,REL, ALL('date'[date]),ORDERBY('Date'[date],ASC)))