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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Filtering assistance

All,

 

I am sure there is an easy solution to this problem but I cannot find it! Anyways here goes:

 

We have a database that contains transaction lines, for simplicity we have 3 columns, sub name, group name, and sale value. We want to be able to create a visual on a page that shows all the group names with total sales divided by sub name. We can do this but we would like to filter that so we see only totals above 1000000. However when we filter by sales value we only get results back where the line is above 1000000 not the overall total for that name.

 

We are hoping to just use DAX or equivalent rather than create a new table,

 

As I said this surely must be easy but I cannot seem to get it to work.

Thanks

Matt

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@Anonymous Create a Group Sales Measure - which calculates the Total at the Group Level!

Assuming that is the Total level you want to filter Smiley Happy You can of course change this to Sub Name

 

Group Sales Measure =
CALCULATE (
    SUM ( 'Table'[Sale Value] ),
    ALLEXCEPT ( 'Table', 'Table'[Group Name] )
)

 

 

Drag this Measure to the Visual level filters and select Show items when the value is: greater than or equal to type 100000

 

And here's the result:

 

DAX - Show only Total Sales over 100K.png

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

@Anonymous Create a Group Sales Measure - which calculates the Total at the Group Level!

Assuming that is the Total level you want to filter Smiley Happy You can of course change this to Sub Name

 

Group Sales Measure =
CALCULATE (
    SUM ( 'Table'[Sale Value] ),
    ALLEXCEPT ( 'Table', 'Table'[Group Name] )
)

 

 

Drag this Measure to the Visual level filters and select Show items when the value is: greater than or equal to type 100000

 

And here's the result:

 

DAX - Show only Total Sales over 100K.png

kcantor
Community Champion
Community Champion

Create a calculation for the visual.

'Type A transactions' = CALCULATE([Total Sales], [Line Amount]>1000000) Or something similar should work.

this shows using the filter within the calculation. Other lines will be blank. You will need lookup tables for the sub name, group name, and date so that you can populate the axis appropriately.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors