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
ShaRaj
Frequent Visitor

Hi , How to find maximum value for each year?

stateYearCategoryvalue 
a2015P10 
a2017p20 
a2018p30 
b2015p40 
b2017p50 
b2018p60 
     

For each year i need to find the minimum value.

 

Thanks in Advance.

1 ACCEPTED SOLUTION

hi @ShaRaj 

like this:

FreemanZ_0-1673508657532.png

 

or, result as calculated table, like this:

FreemanZ_1-1673508698312.png

View solution in original post

5 REPLIES 5
FreemanZ
Super User
Super User

hi @ShaRaj 

you can plot a table visual with year column and a measure like this:

 

Measure = MAX(TableName[Value])

 

or you can create a calculated table with this:

 

Table =
ADDCOLUMNS(
    VALUES(TableName[Year]),
    "MaxValue",
    CALCULATE(MAX(TableName[Value]))
)

 

ok,What is the formula if i have different category like

CountryYearCategoryvalue 
     
Aus2015P10 
Aus2017p20 
Aus2018p30 
Braz2015p40 
Braz2017p05 
Braz2018p60 
Aus2015q35 
Aus2017q15 
Aus2018q25 
Braz2015q47 
Braz2017q

25

 

 
Braz2018q

9

 
Aus2015r

15

 
Aus2017r

9

 
Aus2018r

4

 
Braz2015r22 
Braz2017r21 
Braz2018r25 
Aus2015s13 
Aus2017s17 

so, i want answer like 2015 p (minvalue), 2015  q min value,2015 r min value.....

2017 p,q,r minimum values....

.

 

hi @ShaRaj 

the similar measure:

Measure = MIN(TableName[Value])

 

but plot the table with year and category columns.

hi @ShaRaj 

like this:

FreemanZ_0-1673508657532.png

 

or, result as calculated table, like this:

FreemanZ_1-1673508698312.png

hi, how can i substract these minimum to each value corrspondingly ie, country category wise

like

for each state  for "p" category  value minus minmum

 

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.