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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
mlane
Frequent Visitor

How can I have an industry standard date parameter in Power BI?

I am try to create a date parameter like can in Qlik Sense, Rshiny, Tableau with the following properties:

  • Its a true date parameter that treats date as a series instead of a list.  It can have a default date.  It can have a min and max range.
  • It able have a ""dynamic"" default value set by a calculation from a field.  In my most recent case, I would want that field to the refresh date that the data and semantic model was last refreshed
  • Is fixed at load or refresh

 

P.S.  This is kind of a industry standard concept in Business Intellegence at this point.

1 REPLY 1
FreemanZ
Super User
Super User

hi @mlane 

 

  • you can mark a table as date table:

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-date-tables

 

  • in your date table definition, you can reference today() or MIN/MAX of a date column in your fact table, like:

Date =

ADDCOLUMNS (

CALENDAR (MIN(Fact[Date]), TODAY()),

"Year", YEAR ( [Date] ),

"Qtr", "Q" & FORMAT ( [Date], "Q" ),

"MonthNO", FORMAT ( [Date], "MM" ),

"Month", FORMAT ( [Date], "MMM" ),

"Day",FORMAT ( [Date], "DD" ),

"YYQ", FORMAT ( [Date], "YY" ) & "Q" & FORMAT ( [Date], "Q" ),

"YY/MM", FORMAT ( [Date], "YY/MM" ),

"Weekday", WEEKDAY ( [Date],2 )

)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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