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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Current Week or Week to date calculation

Hi,

 

I want a gauge visual which shows which week i am in currently out of the total number of week of my program. Any idea how to do that?

 

Any help would be appreciated!

 

Thanks!

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I create a sample, here's my date table.

Table = CALENDAR(DATE(2021,9,1),DATE(2022,6,30))

vkalyjmsft_0-1641886871792.png

I create two measures by the DATEDIFF function.

Total Week No = DATEDIFF(MIN('Table'[Date]),MAX('Table'[Date]),WEEK)
Passed Week No = DATEDIFF(MIN('Table'[Date]),TODAY(),WEEK)

Then put Passed Week No in value and Total Week No in Max value, get the result.

vkalyjmsft_1-1641886986414.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

 

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

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, I create a sample, here's my date table.

Table = CALENDAR(DATE(2021,9,1),DATE(2022,6,30))

vkalyjmsft_0-1641886871792.png

I create two measures by the DATEDIFF function.

Total Week No = DATEDIFF(MIN('Table'[Date]),MAX('Table'[Date]),WEEK)
Passed Week No = DATEDIFF(MIN('Table'[Date]),TODAY(),WEEK)

Then put Passed Week No in value and Total Week No in Max value, get the result.

vkalyjmsft_1-1641886986414.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

 

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

amitchandak
Super User
Super User

@Anonymous , check if my blogs on WOW can help you

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
https://www.youtube.com/watch?v=pnAesWxYgJ8

 

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Anonymous
Not applicable

chelani_ankita_0-1641534152592.png

 

I am talking about a gauge like this. I have the total no. of weeks but i am not sure how to add the current weeks passed in the program (the green progress bar). I want something which calculates the no. of week passed from current date and the start date of my program.

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.