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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
dsmitha
Responsive Resident
Responsive Resident

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   @dsmitha 

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   @dsmitha 

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

 

dsmitha
Responsive Resident
Responsive Resident

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 

dsmitha
Responsive Resident
Responsive Resident

hi VahidDM,

 

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

 

regards,

dsmitha

 

dsmitha
Responsive Resident
Responsive Resident

hI VahidDM,

 

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

 

double kudoz

 

regards,

dsmitha

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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