Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All, I have a ReportDate column in a table.
This column has dates from 1974-01-01 till 2026-01-01
and I want to create another calculated column using that existing ReportDate column.
The new column should only show ReportDate ranges from Last 3 years(from todays date) till Today's Month end.
for ex. if today is 12th August 2024 then it should only show dates from 12th Aug 2021 till 31st Aug 2024
can someone please help how to create a new column with expected dates
@amitchandak @v-huijiey-msft @gmsamborn @v-kaiyue-msft @v-jialongy-msft @Ashish_Mathur @quantumudit @quantumudit1
Solved! Go to Solution.
@aatish178 , Try creating a new calculated column using below
NewReportDate =
VAR TodayDate = TODAY()
VAR StartDate = EDATE(TodayDate, -36) -- 36 months back from today
VAR EndDate = EOMONTH(TodayDate, 0) -- End of the current month
RETURN
IF(
'YourTable'[ReportDate] >= StartDate && 'YourTable'[ReportDate] <= EndDate,
'YourTable'[ReportDate],
BLANK()
)
Proud to be a Super User! |
|
@aatish178 , Try creating a new calculated column using below
NewReportDate =
VAR TodayDate = TODAY()
VAR StartDate = EDATE(TodayDate, -36) -- 36 months back from today
VAR EndDate = EOMONTH(TodayDate, 0) -- End of the current month
RETURN
IF(
'YourTable'[ReportDate] >= StartDate && 'YourTable'[ReportDate] <= EndDate,
'YourTable'[ReportDate],
BLANK()
)
Proud to be a Super User! |
|
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
66 | |
61 | |
46 | |
45 |