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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to get corresponding column value ?

Hi 

 

Suppose i have one table with date key and week start date and week end date and fiscal week number columns .How do i get the fiscal week number for today ?

Can someone help me with the dax please 

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Anonymous 

 

If your table has all dates with our any missed date, try this:

Measure = 
Var _D = Today ()
return
calculate(max(table[fiscal week number]),filter(all(table),table[date]=_D))


Otherwise, use this:

Measure = 
Var _D = Today ()
return
calculate(max(table[fiscal week number]),filter(all(table),table[week start date] <=_D&&table[week end date] >=_D))

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

 

View solution in original post

3 REPLIES 3
VahidDM
Super User
Super User

Hi @Anonymous 

 

If your table has all dates with our any missed date, try this:

Measure = 
Var _D = Today ()
return
calculate(max(table[fiscal week number]),filter(all(table),table[date]=_D))


Otherwise, use this:

Measure = 
Var _D = Today ()
return
calculate(max(table[fiscal week number]),filter(all(table),table[week start date] <=_D&&table[week end date] >=_D))

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

 

Anonymous
Not applicable

Thank you for your help 

 

amitchandak
Super User
Super User

@Anonymous ,

Maxx(filter('Date','Date'[week start date] <= Today() && 'Date'[week end date] >= Today() ), 'Date'[week number ])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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