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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Kpetersen92
Regular Visitor

Create slider based sum of quantity for criteria

I am trying to create a slider based on the sum of quantity by customer. Or to at least be able to select a specification such as <500 total sales. I want it to be continually updating with the additional filtering from other slicers that has been applied. 

 

The data is rows showing specific orders, currently can only get it to filter based on quantites per order. However, need to filter it by total quantity relevant to the other filters applied.

CustomerQuantity
A5
B10
B15
B6
A8
A7
C5
C6
C8

 

Is there a way to easily make this? I tried making a measure for the sum by customer, but it won't apply to the slider.

 

Thanks!

2 REPLIES 2
Kpetersen92
Regular Visitor

Hello Amit, Thank you for your reply.

 

I tried creating the measure using the code you provided, but receive the following error.

Quantity total for Customer 2 =
    SUMX(ALLSELECTED('Shipment Level Data','Shipment Level Data'[Customer] = MAX('Shipment Level Data'[Customer]) && 'Shipment Level Data'[Unique Shipment] <= Max('Shipment Level Data'[Unique Shipment])), [Quantity])
 
Error: Multiple arguments are not allowed in the ALLSELECTED function when the first argument is a table reference.
 
amitchandak
Super User
Super User

@Kpetersen92 , Create a measure

m1 = sumx(allselected( Table, Table[Customer] = max(Table[Customer]) && Table[Order No] <= Max(Table[Order No]) ), [Quantity])

 

Have a numeric parameter say name is limit you will get measure say [Limit value]

 

Then have a measure like

if([M1] <= [Limit value] , [M1], blank())

 

or

 

Sumx(summarize(Table, Table[Customer], Table[Order no]) ,if([M1] <= [Limit value] , [M1], blank())  )

 

 

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
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors