cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gordon2 Member
Member

capture slicer selection

Need a dax to capture second higher slicer selection. In my case it is 100:

 

Capture4.PNG

I know I can get selected value when single selection with:

SELECTEDVALUE('price table'[price max])

 

But how to get this with multiple ones?

I am gonna use it later to create sales measure to work on ranges selected on slicer

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: capture slicer selection

@Gordon2,

 

Change it as follows.

Measure =
MAXX (
    FILTER (
        ALLSELECTED ( 'price table'[price max] ),
        'price table'[price max] < MAX ( 'price table'[price max] )
    ),
    'price table'[price max]
)
    + 0
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Highlighted
Community Support Team
Community Support Team

Re: capture slicer selection

@Gordon2,

 

You may use measure below.

Measure =
MINX (
    TOPN ( 2, VALUES ( 'price table'[price max] ), 'price table'[price max], DESC ),
    'price table'[price max]
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Gordon2 Member
Member

Re: capture slicer selection

Thanks Sam,

 

I think I was not precise in my question. Your measure is working but not in all cases, which I had not mentioned before.

It works on total only.

Sorry for this. I hope you can help further.

How to do a measure to work in a matrix like this?:

 

Capture5.PNG

An output should show the figures like those on red.

 

Community Support Team
Community Support Team

Re: capture slicer selection

@Gordon2,

 

Change it as follows.

Measure =
MAXX (
    FILTER (
        ALLSELECTED ( 'price table'[price max] ),
        'price table'[price max] < MAX ( 'price table'[price max] )
    ),
    'price table'[price max]
)
    + 0
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Gordon2 Member
Member

Re: capture slicer selection

Perfect, Thanks!

Helpful resources

Announcements
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 369 members 3,915 guests
Please welcome our newest community members: