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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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