Show more than one value or all the values in multiselect parameter

Hello Everyone,

I have a doubt with multiselect parameter.

I have created a multiselect parameter which has values like Sales,Profit,Quantity,etc.

I have a pivot table which has few dimensions like category,sub category,etc.

When I select sales from the parameter, the pivot visual should show sales in the values.

When I select sales and profit from the parameter, the pivot visual should show sales and profit in different columns.

When I select all the values from the parameter, the pivot visual should display all the values in different columns. It should keep adding based on selected values from the parameter.

I get the below error while writing calculated field.

I tried the below answer, however, it is not giving expected output. When I select sales, it gives sales, when I select profit it gives profit, when I select sales and profit, it gives only profit and not sales. I want two columns one with sales and another with profit. The columns should dynamically add based on values selected.

Multiselect Parameter, error when giving parameter input in calculated field - Q&A - Amazon Quick Suite Community

Just wanted to confirm if it is a limitation.

Hi @Kripa,

Nice seeing you back in the Quick Suite Community! I can definitely understand your frustration with the error, as many people encounter it with many different problems, but it does not make it clear. In the post you linked here, I saw you did not use the in() wrapper like the solution did for your condition, so I would definitely recommend trying that to see if it works.

If not, I would definitely check out this post, as it provides guidance on how to set up values with multiple fields.

Let me know if this helps!

Hi @WLS-Luis

I did try using IN.

ifelse(in(‘Sales’,${MeasureMultiSelect}),sum(sales),

in(‘Profit’,${MeasureMultiSelect}),sum(profit),

in(‘Sales LY’,${MeasureMultiSelect}),sum({sales ly}),

I used the above calculated field.

Then I placed this calculated field in values.

When I select sales values from the parameter, I get sales.

When I select sales and profit from the parameter, I get only Profit.

I need sales in one column and profit in the next column.

Based on the selection, the columns should dynamically add/reduce.

I have attached the expected result below.

Thanks.

Hi @Kripa,

Thanks for the further clarification on your issue. If possible, could you send me a link to an Arena View of your analysis (anonymized data if necessary), as that will allow me to work with your fields and better see if there is a workaround. Here is a link on how to do so!

Hi @WLS-Luis ,

Thanks, below is the arena link

Multiselect Test

I have created parameter named “MeasureNames”.