Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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.
Solved! Go to 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])
or
Measure =
VAR _MinAll = MINX(ALLSELECTED('Table'[Premium]),[Premium])
RETURN
CALCULATE(MIN('Table'[Premium]),FILTER(ALL('Table'),'Table'[Premium]>_MinAll))
| 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])
pls try this
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.