Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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!

  • 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))

    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.

    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.

3 Replies