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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
YavuzDuran
Helper III
Helper III

A measure to find the # of Models Sold more than 25

HI,

 

I need a measure to find the # of vehicle models which sold more than 25 on a selected Calendar year. 

ie. There are 19 models which sold more than 25 in the list below. 

and is there any way to put this limit # 25 in a slicer so I can change it easily instead of hardcoding into the formula? 

ie. Finding the vehicles sold more than 10

 

YavuzDuran_0-1632750288939.png

 

7 REPLIES 7
Anonymous
Not applicable

Hi @YavuzDuran ,

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thank you very much for your kind cooperation!

 

Hope it helps,


Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Shishir22
Solution Sage
Solution Sage

Hello @YavuzDuran ,

 

Try this - 
1. Create a parameter as whole number from 0 to 500(or possible max value) with increment of 1.

 

2. Create a measure as:

 

Flag = 
VAR _sold= SUM(Data[# of Sold])
Var _parameter = SELECTEDVALUE(Parameter[Parameter])
VAR _result = IF(_sold>_parameter,1,BLANK())
Return
_result

 

This Measure will return flag as 1 or blank.

 

Use this measure as visual level filter and set equals to 1.

 

Shishir22_0-1632762953879.png

 

Shishir22_1-1632762984115.pngShishir22_2-1632763005642.png

Please mark this post as solution if it fulfils your requirement. Kudos are also accepted.

Cheers!

Cheers,
Shishir
parry2k
Super User
Super User

@YavuzDuran I don't what measure you are using, you need to copy the measure from my file, not sure what else to tell? Did you copy the measure from my file? Not sure what have you tried from my solution? You have to be more clear what you have tried



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@YavuzDuran see attached solution,

 

sold.gif

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Am I missing something? Table is not filtering as I a forwarding the slicer @parry2k 

 

 

YavuzDuran_0-1632755962027.png

 

PaulDBrown
Community Champion
Community Champion

 

You can't type in parameters once the report is published, but you can create a table with values to use as a slicer.

Create a table with the threshold values for sales. This is my example. I created the list in Excel and simply pasted it into a table using the "Enter data" in the ribbon). You can also create the list directly in Desktop using "New Parameter" under modeling in the ribbon.

thresh.JPG

 Leave this table unrelated in the model.

Now create the following measures:

 

Sum Sold = SUM(FactTable[# Sold])
Threshold filter =
COUNTROWS (
    FILTER (
        FactTable,
        [Sum Sold] > SELECTEDVALUE ( 'Sales Threshold'[Sales Threshold] )
    )
)

 

Add this [Threshold filter] measure to the filters on the visual in the filter pane and set the value to 1.

Add a slicer from the Threshold Sales table and you get:

 

Threshold.gif

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Model# of Sold
C-Class215
Malibu202
E-Class185
Impala150
CLA-Class145
Altima140
Sonata132
Optima112
Camry100
Equinox95
Charger62
Passat60
Rogue50
GLA-Class40
Accord38
3-Series36
ES 35035
Jetta34
Elantra26
S-Class24
Fusion22
5-Series20
Fusion Hybrid18
Sentra12
Tiguan10
4-Series Gran Coupe9
Outlander8
X58
Challenger6
X16
XTS5
Corolla4
Forte3
RX 3503
F-1503
Camaro2
Civic2
GLC-Class2
Silverado 15002

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.