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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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