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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Countdown timer for offer period

Hi,

 

We have a dashboard displaying sales achieved / to be achieved  details during the offer period which is from 20th November 2022 to 31st December 2022.  We would like to add a countdown clock like dynamic card which shows the days left for offer sales period.  I know there is a custom visual available in store but I would like to get it done with a DAX.  Request your guidance

 

regards,

dsmitha

2 ACCEPTED SOLUTIONS
VahidDM
Super User
Super User

HI   @Anonymous 

Do you just want to show the days left on that card (CountDown)?

You can use a measure like this:
Remained Days = DATEDIFF( DATE(2022,12,31), Today(), DAY)

 

More info about this formula:
https://learn.microsoft.com/en-us/dax/datediff-function-dax?WT.mc_id=DP-MVP-5004936

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

Badges.jpg

 

View solution in original post

You can write some dax, change the intervals to hours, minutes, .... then you can format the output.

 

Check this blog post:
https://www.vahiddm.com/post/calculating-business-hours-in-power-bi-using-dax

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

View solution in original post

5 REPLIES 5
VahidDM
Super User
Super User

HI   @Anonymous 

Do you just want to show the days left on that card (CountDown)?

You can use a measure like this:
Remained Days = DATEDIFF( DATE(2022,12,31), Today(), DAY)

 

More info about this formula:
https://learn.microsoft.com/en-us/dax/datediff-function-dax?WT.mc_id=DP-MVP-5004936

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

Badges.jpg

 

Anonymous
Not applicable

HI VahidDM,

 

Also, if you can help me

How can we show the count down hours / minutes / seconds 

 

regards,

dsmitha

You can write some dax, change the intervals to hours, minutes, .... then you can format the output.

 

Check this blog post:
https://www.vahiddm.com/post/calculating-business-hours-in-power-bi-using-dax

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!! 

Badges.jpg

LinkedIn | Twitter | Blog | YouTube 

Anonymous
Not applicable

hi VahidDM,

 

Thank you so much for sharing the link, helped a lot

 

regards,

dsmitha

 

Anonymous
Not applicable

hI VahidDM,

 

Thank you very much, this is exactly what i was looking for

 

double kudoz

 

regards,

dsmitha

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.