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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to calculate second lowest premium

Hi ,

 

I have premiums below and want to calculate second lowest premuim .From below example I need to get 2000 has second lowest

premium.

 

Premium
5000
4000
30000
2000
1000

 

Pleasehelp on this asap.

1 ACCEPTED SOLUTION

pls try

Measure = 
VAR _MinAll = MINX(ALLSELECTED('Table'[Premium]),[Premium])
RETURN
CALCULATE(MIN('Table'[Premium]),FILTER(ALL('Table'),'Table'[Premium]>_MinAll))
-----
Measure = MAXX(
TOPN(2,VALUES('Table'[Premium]),'Table'[Premium],ASC),'Table'[Premium])

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

or

Measure = 
VAR _MinAll = MINX(ALLSELECTED('Table'[Premium]),[Premium])
RETURN
CALCULATE(MIN('Table'[Premium]),FILTER(ALL('Table'),'Table'[Premium]>_MinAll))
Anonymous
Not applicable

Premium
5000
4000
30000
2000
1000
1000

 

Need to get second lowest from above table as 2000

pls try

Measure = 
VAR _MinAll = MINX(ALLSELECTED('Table'[Premium]),[Premium])
RETURN
CALCULATE(MIN('Table'[Premium]),FILTER(ALL('Table'),'Table'[Premium]>_MinAll))
-----
Measure = MAXX(
TOPN(2,VALUES('Table'[Premium]),'Table'[Premium],ASC),'Table'[Premium])
Ahmedx
Super User
Super User

pls try this

Screenshot_1.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors