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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Jkpeter_629
New Member

Help with slicer applying to measure

I can't seem to understand how to get the right filter context to apply the selected two slicers to the measure in the visual.  I think I need to use the ALLSELECTED and RELATED to get the measure to only have the two slicer filters rows.  

Here's what I have before I add the measure to the visual, with the two slicers selected:

image.png

and then I get all the rows (parts) when I add in my measure that shows a 1 for parts with SumNetSold > 0 else 0.

image.png

 

(can't attach the pbix, I'll try and load and link it)

 

https://drive.google.com/file/d/1mSwTTSFh6AReP07DuhcH93GwlA5OmvsL/view?usp=sharing

Hope this link works

Thank you all for any help

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Usually that is done through the data model.  Note that RELATED only applies to calculated columns.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

I do not know what result you want but does this measure work?

NoDemand = IF ( 
    [SumNetSold] > 0, 
    1,
    BLANK() 
)

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Usually that is done through the data model.  Note that RELATED only applies to calculated columns.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.