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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
mithiladas02
Helper I
Helper I

How to i select multiple items in slicer

Hi,

 

i am using the below dax for slicer. But i am not able to select multiple items at a time. It is showing only 1 like A or B or C. how can i select A,B,C at a time. In formating i select miltiple selection also but didnt work. 

 

2,"A", [Measure 1],

3,"B", [Measure 2],

4,"C", [Measure 3],

5, "D", [Measure 4],

1, "None"

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @mithiladas02 ,

 

You could use selectedmeasurename() function.

Create a slicer table contains the measure names you are using and add the below part of formula to the measures.

IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]).

For example:

 

_avg = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), AVERAGE('Table'[value]))

_max = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), MAX('Table'[value]))

_min = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), MIN('Table'[value]))

_sum = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), SUM('Table'[value]))

 

vjaywmsft_0-1653986209109.png

vjaywmsft_1-1653986221283.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @mithiladas02 ,

 

You could use selectedmeasurename() function.

Create a slicer table contains the measure names you are using and add the below part of formula to the measures.

IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]).

For example:

 

_avg = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), AVERAGE('Table'[value]))

_max = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), MAX('Table'[value]))

_min = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), MIN('Table'[value]))

_sum = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), SUM('Table'[value]))

 

vjaywmsft_0-1653986209109.png

vjaywmsft_1-1653986221283.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Nathaniel_C
Super User
Super User

Hi @mithiladas02 ,
You don't give us enough information to solve this, but have you tried CTRL key along with your choices?


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Yes i tried. i made a dynamic line chart where i have created measure for slicer. on this measure i am not able to select multiple item to show the compare in line chart.  

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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