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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Rene83
Frequent Visitor

Numeric-Slicer Count

Hello.
I would like to implement the following.

I have a table with about 20 columns and about 2 million rows.
Currently there is always a filter set via
"Filter for this page" - "Is greater or equal than" - "50". As value field the column "Type" is taken which contains a text.

However, I would like to filter the number dynamically via a numeric slicer.
Similar to filtering a time period.

Thanks
Rene

5 REPLIES 5
Anonymous
Not applicable

Hi @Rene83 

Put the measure in Filters on all pages in Filters .

Ailsamsft_0-1643873641395.png

Best Regard

Community Support Team _ Ailsa Tao

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

Hi @Anonymous ,

 

measure cannot be added in Filters on all pages.

This works only with columns.

Is there any solution here?

 

Best Regard

Rene

 

Anonymous
Not applicable

Hi @Rene83 

I created a sample. Filter the numbers in the data table through the number category in the slicer, and you can see if it meets your needs.

(1)Create a slicer table with number category .

Ailsamsft_0-1643270322262.png

(2)Then create a measure to judge whether the data in data table match the selected value in slicer .

Flag =
VAR _sum =
    CALCULATE (SUM ( 'Table'[value]), ALLEXCEPT ( 'Table', 'Table'[Product] ))
RETURN
    SWITCH (MAX ( Slicer[category] ),
        "10+", IF ( _sum > 10, 1 ),
        "30+", IF ( _sum > 30, 1 ),
        "50+", IF ( _sum > 50, 1 ),
        "100+", IF ( _sum > 100, 1 ),
        "All", 1)

(3)Add the measure in data visual and set the measure is equal 1

Ailsamsft_1-1643270322263.png

The final result is as shown :

Ailsamsft_2-1643270322265.png

Ailsamsft_3-1643270322266.png

I have attached my pbix file , you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

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

Hi @Anonymous ,

thank you for your solution. Works very well. I still have one question. How can I use the measure "Flag" as a filter on all pages?

 

Best Regrad

Rene

AllisonKennedy
Super User
Super User

@Rene83 Can you paste the first few rows of the columns you want to use in the slicer and show screenshot of your page level filter. I'm not sure what you mean as you mention both text and number so need to know a bit more about the data


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors