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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Need help to create filter on numerical data from column header

I can create text filters with the slicer to show populater information such as , Region, Country, Site, Division etc.

 

I have 8 columns of numerical data for an inventory report. 

I need to create a filter to select the column header text which is Gross and one for Net but cannot get this to work on slicer or other tools.

 

Is there a simple way to do this. 

See screen shot belowFilter Helpo.PNG

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can create a calculate column and use it to be a slicer to meet your requirement.

 

1. Create a column to group Gross and Net.

 

Gross or Net = 
SWITCH(
    TRUE(),
    CONTAINSSTRING('Table'[Group],"Gross"),"Gross",
    CONTAINSSTRING('Table'[Group],"Net"),"Net",
    "Others")

 

Need1.jpg

 

2. Then we can create a slicer based on Gross or Net column. It can control the lines.

 

Need2.jpg

 

Need3.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

View solution in original post

2 REPLIES 2
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can create a calculate column and use it to be a slicer to meet your requirement.

 

1. Create a column to group Gross and Net.

 

Gross or Net = 
SWITCH(
    TRUE(),
    CONTAINSSTRING('Table'[Group],"Gross"),"Gross",
    CONTAINSSTRING('Table'[Group],"Net"),"Net",
    "Others")

 

Need1.jpg

 

2. Then we can create a slicer based on Gross or Net column. It can control the lines.

 

Need2.jpg

 

Need3.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that we have shared?

 

Best regards,

 

Community Support Team _ zhenbw

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

 

BTW, pbix as attached.

amitchandak
Super User
Super User

@johnnytarr, not very clear. Are you looking for the cutter

measure the cutter
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://www.youtube.com/watch?v=vlnx7QUVYME

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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