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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Filtering

Hello all! 

 

I'm looking to create a measure that does the following:

 

If nothing is selected in the Project Manager slicer (PM), display the total. ie. you wouldn't have all 15 PM's overlayed - you would just see the sum of all Variances in Jan, Feb, etc. IF a PM (or multiple) PM's are selected in the slicer above, overlay the selected PM's variances, and not the total of the all. 

 

So i'm thinking it has to do with an All function, or selectedvalue, or hasonefilter... 

 

 

Any help would be greatly appreciated!!If not selected - display total.JPG

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Something like

IF(ISFILTERED('silcer'[PM]),CALCULATED(SUM('table'[value]),FILTER('table','table'[PM] in VALUES('slicer'[PM]))),CALCULATED(SUM('table'[value]),ALL('table'[value])))

Better to share some sample data to us so that we can help you deal with the formula.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Anonymous
Not applicable

RPC Data - PBIX source 

 

Hey thank you for the reply! That was pretty close... but it still has everyone laid over one another rather than just a summary by month.  I want a summary by month for every PM. Then if I slice the PM's only show the selected PM's data.

 

I'm using the +/- Variance Invoice to RPC column.

 

The link I shared is to my Google Drive. I hope that works for you!

 

@Anonymous 

amitchandak
Super User
Super User

@Anonymous , check if is filtered can help

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

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
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.