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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
v-jayw-msft
Community Support
Community Support

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 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

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 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
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])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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

pranit828
Community Champion
Community Champion

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





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.