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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
oliverome
Regular Visitor

Distinguish in date notation depending on project status (planned/started)

Hi, I'm building a dashboard to do some project management. I'm looking to distinguish date notation in a table on my dashboard.

Here's an example of what I'm looking for:

 

 StatusStart date (current view)Start date (as I'd like to see it)
Project   
1Started1-1-20241-1-2024
2Started1-2-20241-2-2024
3Planned1-7-2024Week 27
4Planned1-8-2024Week 31

 

In my source table, I have put estimates of planned start dates in the dd/mm/yy format. However, it would be better to display them as weeks, as they are not as precise. 

 

All projects I have started on, have a specific start date. Those I'd like to display with their specidic dates. Therefore the column of the dashboard would have a mix of data types. How do I do this?

 

I'm thinking of creating a table that distinguishes between 'planned' and 'started' projects in a binary way. After that, I'd have to make an if statement somewhere:

If [status] is [planned], then [date notation] is [rounded to weeks]

Elif [status] is [started], then [date notation] is [specific to the day]

 

But how and where do I do this? I'm rather new to PowerBI.

Thanks in advance!

1 ACCEPTED SOLUTION
xifeng_L
Super User
Super User

Hi @oliverome 

 

You can try below calculated column expression.

 

xifeng_L_0-1717151270477.png

 

Column = IF('Table'[Status]="Started",FORMAT('Table'[Start date (current view)],"d-m-yyyy"),FORMAT('Table'[Start date (current view)],"""Week"" ww"))

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

View solution in original post

2 REPLIES 2
xifeng_L
Super User
Super User

Hi @oliverome 

 

You can try below calculated column expression.

 

xifeng_L_0-1717151270477.png

 

Column = IF('Table'[Status]="Started",FORMAT('Table'[Start date (current view)],"d-m-yyyy"),FORMAT('Table'[Start date (current view)],"""Week"" ww"))

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

 

Hi! Thanks for your reply. I don't know where to put this expression - through 'create custom column' does not seem to work. Under 'calculated column' I get if-statements, but no way to format the output. 

Can you show me a bit more of how you created this expression, and where you added it?

 

Edited to add: Nevermind, I figured it out! Many thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.