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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.