Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
create calendar based on source date
11-08-2023
03:53 AM
Hi All,
I have source file dates starting from 31/01/2021 to till yesterday ( November 7th 2023) as i have created calendar table based source first date and lastdate.
But while using into calendar date as in slicer it's appearing till December 2023.
calender = CALENDAR(FIRSTDATE('For Loading'[Day]), LASTDATE('For Loading'[DAY]))
Issue below :
Kindly suggest how to avoid and get till last date of source file.
Thanks,
MS
Solved! Go to Solution.
1 ACCEPTED SOLUTION
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 REPLIES 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023
04:02 AM
try this
Calendar =
VAR BaseCalendar =
CALENDAR (MIN('For Loading'[DAY]) , MAX('For Loading'[DAY]))
RETURN
GENERATE (
BaseCalendar,
VAR BaseDate = [Date]
VAR YearDate = YEAR ( BaseDate )
VAR MonthNumber = MONTH ( BaseDate )
VAR YearMonthNumber = YearDate * 12 + MonthNumber - 1
RETURN ROW (
"Year", YearDate,
"Month Number", MonthNumber,
"Month", FORMAT ( BaseDate, "mmmm"),
"Year Month Number", YearMonthNumber,
"Year Month", FORMAT ( BaseDate, "mmm yy")
)
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023
04:35 AM
if it doesn’t work, check your data, it’s all there December
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023
04:27 AM
you disable this option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023
03:59 AM
@MSuser5 ,
can you try min and max instead of startdate and lastdate.
can you also make sure from the data view that there's no record for december.
Proud to be a Super User! | |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2023
04:06 AM
I'm sure there is no data for december and i have tried for MIN , MAX condition but no luck.
FYI,

Helpful resources
Recommendations
Subject | Author | Posted | |
---|---|---|---|
05-14-2024 10:56 PM | |||
02-08-2024 03:09 PM | |||
03-20-2024 01:56 AM | |||
05-01-2024 07:10 PM | |||
05-13-2022 06:24 AM |
Featured Topics
Top Kudoed Authors (Last Month)
User | Count |
---|---|
123 | |
103 | |
84 | |
49 | |
46 |