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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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