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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jpchen
Frequent Visitor

Can't sum (measure) selected parameters

Hello,

 

Need some help here.

 

I need to calculate top 10 Account Receivables amounts based on user selection.

 

For that, I created the below What-if Parameters and used it for "Selectable" Ranking (rank amounts from top to lowest value).

 

What-if Parameters

jpchen_1-1666170262968.pngjpchen_2-1666170278801.png

 

I created another measure to calculate Sum of Amount which users can select ranking (say top 10 amounts).

 

jpchen_6-1666170488035.png

 

Rank (measure)

jpchen_3-1666170299192.png

 

The result

jpchen_8-1666170923044.png

 

However, when I tried to Sum "only selected Parameter" (say only sums top 10 AR), my measure is not working.

 

jpchen_4-1666170322997.png

 

Not sure if this is a Power BI issue or my DAX is wrong.

 

My data structure:

jpchen_0-1666170181290.png

 

Any help will be appreciated. Thanks in advance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jpchen , refer this blog

 

https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@jpchen , refer this blog

 

https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.