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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Omarion84
Frequent Visitor

How to get the Bottom N, I was able to get Top N

I need to showcare the TOP Funded and the Lowest Funded Agency (in Cards)

 

I was able to show TOP,  in 2 different ways, but how do I change the formula to give me the bottom#? I tried to use ASC instead of DESC, the Agency returned is not the bottom one.

 

Top Funded 1 = Calculate( SELECTEDVALUE('Unique Data Per Order'[Agency]),FILTER(TopN(1, All('Unique Data Per Order'), [Total Funded Amount],DESC), TRUE))

 

Top Funded 2 = FIRSTNONBLANK(Topn(1,values('Unique Data Per Order'[Agency]),[Total Funded]),1)

2 REPLIES 2
Mkarwa-123
Resolver II
Resolver II

@Omarion84 to get bottom N make DESC to ASC in topN formula

Top Funded 1 = Calculate( SELECTEDVALUE('Unique Data Per Order'[Agency]),FILTER(TopN(1, All('Unique Data Per Order'), [Total Funded Amount],ASC), TRUE))

Did I answer your question? Mark my post as a solution!

 

As I mentioned in my post, I tried that, it did not bring the bottom *lowest funded agency* 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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