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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Power BI

I'm trying to create a dynamic date column in Power BI that can display data at different granularities (days, weeks, months) based on a user-selected option. I've created a date table and a parameter to control the granularity.

Example:

If the user selects "Day", the column should display individual dates. If the user selects "Week", the column should display the start date of each week. If the user selects "Month", the column should display the first day of each month. this is the image for you guys understand.

hafizamir1010_0-1723596237252.png

 

2 REPLIES 2
lbendlin
Super User
Super User

The standard date axis does this already for you. Have you considered using that?

 

Note that weeks are incompatible with pretty much everything else.  You will need to have a static calendar table (ideally externally sourced) that clearly identifies the week number in your year and/or quarter.

Anonymous
Not applicable

do you know how to make sure both day got red color instead of one only?

hafizamir1010_0-1724642592384.png

because my intention to create a table where it shows red color if there is pending, or alt_hrs >slt_hrs. And it will show blue color if there is a test that got no pending, and its alt_hrs<slt_hrs.

Because currently my table only shows the result of red color based on end_time only.
I want the table if the test last for 2 days, it will show red color on both days instead on the end time day.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.