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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Mihaw
Regular Visitor

sum quantity by selectedvalue of dropdown

Hello,

 

I couldn't find the solution although it seems easy to do....

Here's the Data (simplified) :

Mihaw_0-1677081086911.png


I'm using a dropdown like this to select a month (and not a slicer) : 

Mihaw_1-1677081355762.png

And what I want to do with measure is :

Sum(Quantity) where year = 2023 and type = "Sale" and month between 1 and SELECTEDVALUE(Data[Month])
The Result should be :

Nike0
Hummel500


Thank you. 

2 REPLIES 2
Padycosmos
Solution Sage
Solution Sage

amitchandak
Super User
Super User

@Mihaw ,

Measure = calculate(Sum(Table[Quantity]), filter(Table, Table[year] = 2023))

 

if the month slicer is from this table. then it will filter

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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