Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rbangari001
Frequent Visitor

Fiscal calendar should have the end date as today's date

Hi,

 

I have a Fiscal calender where it needs to show the

start date as 7/1/2018 and

End Date = Today's date 

 

let
Source = #"Dates Query"(#date(2018, 7, 1), #date(2022, 6, 30), 7),
#"Renamed Columns" = Table.RenameColumns(Source,{{"MonthName", "Month Name"}, {"FY", "FY"}}),
#"Filtered Rows" = Table.SelectRows(#"Renamed Columns", each [Date] <> null and [Date] <> ""),
#"Renamed Columns1" = Table.RenameColumns(#"Filtered Rows",{{"FY", "Fiscal Year"}, {"Month Name", "Month"}})
in
#"Renamed Columns1"

=============================================================================================

 

Please help.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rbangari001 , what are you trying here?

 

Date table in power Query

Date Table in Power Query: https://youtu.be/so_A22HXbwM

In diff take end date as Today - Date.From(DateTime.FixedLocalNow())

 

 

Any calendar in DAX, use today() as end date

 

Creating Financial Calendar - From Any Month
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@rbangari001 , what are you trying here?

 

Date table in power Query

Date Table in Power Query: https://youtu.be/so_A22HXbwM

In diff take end date as Today - Date.From(DateTime.FixedLocalNow())

 

 

Any calendar in DAX, use today() as end date

 

Creating Financial Calendar - From Any Month
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.