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

Max value per week based on WEEK relationship between tables

Hi All,

I want a measure for MAX value per week and further use this measure in a table which does not have a direct active relationship.
Although, week relatiponship exist based on week number.

 

MAX_Value_Per_Week.png 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Check

Column = CALCULATE(MAX('Table'[value]),FILTER('Table','Table'[weeknum]='Table (2)'[weeknum]&&'Table'[product]='Table (2)'[product]))

1.PNG

3.PNG

2.PNG

 

Best Regards,

Jay 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

Check

Column = CALCULATE(MAX('Table'[value]),FILTER('Table','Table'[weeknum]='Table (2)'[weeknum]&&'Table'[product]='Table (2)'[product]))

1.PNG

3.PNG

2.PNG

 

Best Regards,

Jay 

amitchandak
Super User
Super User

@Anonymous , take week (unsummarized), and these two measure

for product take -lastnonblankvalue(table[value],max(table[product]))

for value take max(Table[Value])

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
Anonymous
Not applicable

@amitchandak @v-jayw-msft

I have attcahed a sample pbix file. Please download.

https://drive.google.com/drive/folders/1E_k7VbgImoTft43JOncSMrwrWtCwVUVx?usp=sharing


I would like to get the MAX value at Item -> week -> MAX(stock_value per item / week ) and the measure Total

For Example : Product_1 -> Week 1 -> 2997

Product_2 -> Week 1-> 316

Measure Total = 3313

Thanks a lot

Anonymous
Not applicable

Hi @Anonymous 

 

I would use

calculate(max([value], allexcept(table,table[week_num]))

 

Did I resolve your issue? Mark my post as a solution!

 

Appreciate your Kudos, Press the thumbs up button!!

 

Regards,
Pranit

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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