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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.