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

Join 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.

Reply
jcarville
Skilled Sharer
Skilled Sharer

Displaying a date vs a target date

Hi guys,

 

As the title says I'm looking a nice way to display a date vs a target date.

There are thresholds involved so if a date goes beyond a target it would be nice for it to change colour.

 

Any help would be appreciated.

Thanks.

1 ACCEPTED SOLUTION

Almost positive they work in a table, I'm pretty sure an early version of my OSU file used a table. Essentially, you plug in the URL to a column, Enter Data is useful for things like this. you also have your key column. After loading, you go to the Modeling area, modeling tab, pick your image url column and set the Data Categorization to Image Url, then when it gets displayed, it displays the image not the text of the URL.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
Vaj99
New Member

Hi , I'm trying to visualise something simialar, I'm fairly new to powerbi, do you have a solution

 

Greg_Deckler
Super User
Super User

Given a table of dates and other information, you could create a custom colum that is basically your target date, another custom columns would be:

IF([date] > [target]),1,0)

now you would have a flag field that you could relate to something like an images table with image urls for 1 and 0. Conditional formatting is not yet a feature.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

I understand your formula completely, I presumed I would need something like this.

I'm interested in finding out more about using image urls, I didnt think using them with a table was possible in Power BI.

 

Appreciate all suggestions as this problem has me stuck for a while.

Almost positive they work in a table, I'm pretty sure an early version of my OSU file used a table. Essentially, you plug in the URL to a column, Enter Data is useful for things like this. you also have your key column. After loading, you go to the Modeling area, modeling tab, pick your image url column and set the Data Categorization to Image Url, then when it gets displayed, it displays the image not the text of the URL.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Brilliant thanks for that, never knew that was possible, it gives me another option to create a mock up of before making my final decision.

Its a pity it has to be a Image URL and not an image from a local source.

 

I'm still open to other solutions/suggestions.

 

Cheers guys.

greggyb
Resident Rockstar
Resident Rockstar

We'll need some more details about your data model's structure, and what measures (if any) are involved here. Your description is far too vague to be able to offer useful responses. If you can share sample data (preferably in a .pbix hosted on OneDrive or similar, definitely not as a screenshot of data in your model (no one wants to copy all your data over by hand)) that's the most helpful in being able to offer constructive feedback.

Thanks for the reply, it's much appreciated.

 

I have uploaded a .pbix to OneDrive here: https://onedrive.live.com/redir?resid=3A26887851AC0434!447&authkey=!AAypu20D4TzMNzM&ithint=file%2cpb...

 

I haven't seen the companies data but it will be relatively straight forward like this example. So each KPI has an Initial Target Date set when they are created but over time they might be completed later/sooner, hence New Target Date.

If a KPI is on course to be completed by it's Initial Target Date ideally it should be green, otherwise it should be red.

 

These don't have to be displayed on the same visual. I just need to show KPI name, and some nice way of showing how New Target Date compares to Initial Target Date.

 

Thanks.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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