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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
Community Champion
Community Champion

@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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.