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! Learn more

Reply
KevinSGoff
Helper I
Helper I

DAX Measure filter question

I've got a PBI page where I'm showing a scatter graph (though it could be any visual)

 

I'm summaring invoices by carrier and location and showing as plotted points.

Now, normally it could be thousands of plotted points.  So logically I want to filter on just those carrier/locations that meet a criteria.

 

The criteria (a measure ) is whether the total freight loss exceeds a certain amount.

 

So...I've got a scatter chart that reads from a model of millions of invoices, and summarizes by carrier/location and shows plotted points, but only for those that exceed a certain amount.


Now...I also have a measure that is the sum of tons across all carriers for that invoice.       I want to use that as a tooltip.

And therein lies the problem.  Let's say we've had 10,000 tons shipped to Kansas City.  
there might have been 2,000 tons shipped using one carrier.   And that carrier had a loss above the threshold.
The other 8,000 tons might have been shipped by other carriers to KC, where they did not incur a loss - and therefore don't show.

However, I want the tooltip to be able to "wiggle out" of the visual filter.

My calculated measure that would normally show 10,000 tons is like this.

Sum of Carrier Tons Across Route All Plants = calculate( [Carrier Inv Tons], all( TestOutputFreightLoss[CarrierName]),
                                                           all( TestOutputFreightLoss[FromFreightLocation]))

My page filter is a measure called [Loss Factor], and I have a filter on the visual that uses the [Loss Factor]

I have tried to modify that calculated measure above, using every combination of FILTER and ALL that I can think of, but nothing seems to work.     In plain english, I wish I could just say in that calculated measure, "ignore the filter on [loss FActor]".  I realize if Loss FActor were a column, it might be easy, but it's a derived measure that does some aggregation.
 
I can't believe I'm saying this, but I know how to do it in MDX  🙂 
 
Any thoughts?
Thanks,
Kevin 
 











 

1 REPLY 1
parry2k
Super User
Super User

@KevinSGoff it will be easier to provide a solution if you paste some sample data with expected output. Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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.

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