dax calendarauto()
3 TopicsOwn date table is not properly filling itself out
Hi everyone, I am having the problem that my DAX command for creating a date table is not properly working. I am using the following DAX formula: Date = VAR MinYear = 2012 VAR MaxYear = 2031 RETURN ADDCOLUMNS ( FILTER ( CALENDARAUTO( ), AND ( YEAR ( [Date] ) >= MinYear, YEAR ( [Date] ) <= MaxYear ) ), "Year", YEAR ( [Date] ), "Month Name", FORMAT ( [Date], "mmmm" ), "Month Number", MONTH ( [Date] ) ) What I find especially confusing is the fact that this command worked in an earlier dashboard but would not work now. Here is the screenshot of my older dashboard where it worked as intended: and here is a screenshot of how it fails to work: Does anyone know why this is the case and what the remedy to this might be? Thanks in advance!Solved896Views0likes2CommentsDAX calculated columns to create Date Tables
Hi All, I need to create a Date Table [Data Table] using any possible DAX measures or DAX calculated columns. I need the output in the below expected format.Please suggest. so I basically want to show current month, year, previous month along with the month start and end dates. I want it for the whole year for 2021,2022 and 2023..Please suggest Current Month Year CurrentMonthStart CurrentMonthEnd Previous Month PreviousMonthStart PreviousMonthEnd January 2022 01-01-2022 31-01-2022 December 01-12-2021 31-12-2021 February 2022 01-02-2022 28-02-2022 January 01-01-2022 31-01-2022 March 2022 01-03-2022 31-03-2022 February 01-02-2022 28-02-2022 April 2022 01-04-2022 30-04-2022 March 01-03-2022 31-03-2022 May 2022 01-05-2022 31-05-2022 April 01-04-2022 30-04-2022Solved1.9KViews0likes5CommentsDAX CALENDARAUTO()
HI This may just seem like a simple solution, I maybe am over complicating matters here, but what I think makes sense DAX just disagrees or does the opposite to what I want. I am a litte lost. This is my forumla in DAX, I am trying to create a Date table, which will evetually will be populated with our Fiscal Periods and Quarters. I thought if I could first get the key Date column right then the rest would just fall into place; thats the theory. My Formula: Date = VAR MinYear = Year( min (Details[Submitted_Date] )) VAR MaxYear = Year( max (Details[End_Date] )) RETURN FILTER ( CALENDARAUTO(7), YEAR ( [Date]) >= MinYear && YEAR ( [DATE] ) <= MaxYear ) Now I wanted my Fiscal year, or the FiscalYearEndMonth to be July. When I use 'CALENDARAUTO(7)' as is, the dates are great but the reason I am using the min and max is to reduce or keep my table size down, focus only on the date I need. You see the number 7, in RED, the formula or calucation ignores this Parameter but I am not sure why. When I run the full forumal the date starts in January not August. Any help greatly apprciated. ChrisSolved5.8KViews0likes8Comments