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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Harvest multiple values from a slicer

Hey folks,

I am trying to create a measure that harvests multiple values from a slicer and display on a page title. The formular currently in use is only capable of harvesting 1 value and return "More than a month selected". The formular is as below.

SELECTEDVALUE('MTD Forecast'[DateforPreviousYears].[Month],"More than a month selected")
An ideal solution will show as selected, which will vary from "January, March" to "Quarter 1"  as desired (the variable 'DateforPreviousYears" is a Date hierarchy).
 
Any suggestions?
1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

To harvest multiple values from a slicer, you can try  in VALUES('Table'[column]) to replace SELECTEDVALUE('Table'[column]).

If I misunderstood, please share a sample pbix or relevant screenshots to further clarify your question.

Best Regards,
Community Support Team _ Eason
 

 

View solution in original post

7 REPLIES 7
daXtreme
Solution Sage
Solution Sage

VALUES will return a table with all the values selected in a slicer but such a table can't be used directly in a report. A measure must always return a single value with no exceptions. So, to visualize all the values selected in a slicer you have to also use the CONCATENATEX function over VALUES to turn the individual rows of the virtual table into a string that can then be displayed.

Anonymous
Not applicable

It works like perfectly @daXtreme . Thanks for that.

v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

To harvest multiple values from a slicer, you can try  in VALUES('Table'[column]) to replace SELECTEDVALUE('Table'[column]).

If I misunderstood, please share a sample pbix or relevant screenshots to further clarify your question.

Best Regards,
Community Support Team _ Eason
 

 

Anonymous
Not applicable

Thanks @v-easonf-msft. I think you got it quite right...only a slight difference. The challenge isnt to harvest value..but values. Using the Value DAX command failed to harvest values. When I selected more than 1 variable, the solution crashed.

Hi, @Anonymous 

Please show the full formula you are currently using or related screenshots.

This will better help me understand the question.

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Apparently @v-easonf-msft , I need to use the CONCATENATEX function in front of the values function to harvest all the values as advised above.

Thanks for assistance. Truly appreciate it.

lbendlin
Super User
Super User

Instead of SELECTEDVALUE() use FILTERS()

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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