Forum Discussion

Masthi's avatar
Masthi
Frequent Visitor
2 years ago
Solved

Issue with Field parameter

Hi Team,

 

when I add the field parametr to the table, it is showing all the fields but it should not show all of them at a time, based on user selection it should show. Please find the attached snip.

 

Default fields in the table as below:

1.Category

2.city

3.country

dynamic fields as below:

1.Order ID

2. Product name

3.Product id

 

-- I have tried this measure and used in the table rather than using field parameter but no use.

Test = IF(HASONEFILTER('Field Parameter'[Parameter Fields]),1,0)
 

 

  • Hi,

    I am not sure if I understood your question correctly, but one of many ways to solve this is creating Calculation Group in Tabular Editor and use it as a filter in the visual level filter pane.

    Please check the below picture and the attached pbix file.

     

    My pbi sample shows,

    If one or two are selected on the slicer, it shows information.

    If three or nothing are selected on the slicer, it shows nothing.

     

     

     

     

5 Replies

  • Hi,

    I am not sure if I understood your question correctly, but one of many ways to solve this is creating Calculation Group in Tabular Editor and use it as a filter in the visual level filter pane.

    Please check the below picture and the attached pbix file.

     

    My pbi sample shows,

    If one or two are selected on the slicer, it shows information.

    If three or nothing are selected on the slicer, it shows nothing.

     

     

     

     

  • Hi Masthi There's no way for your report users to select the "none" or no fields option. Selecting no fields in the slicer or filter card is the same as selecting all fields.
    please refer to the linked discussion, it includes some alternatives.
    https://community.fabric.microsoft.com/t5/Desktop/Field-Parameters-nothing-selected-show-blank-on-a-visual/td-p/2968203

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

    • Masthi's avatar
      Masthi
      Frequent Visitor

      Hi Ritaf,

      You are not able to understand my issue.

      I am not talking about slicer selection (based on slicer selection the column is adding to the table-it is working fine).

      Before that When I add the field parameter to the table visual, it is showing all the fields which are added to the field parameter (The table visual shouldn't show all the fields which are added to the field parameter (If the table visual shows all the fileds then what is the usage of field parameter concept). 

    • Masthi's avatar
      Masthi
      Frequent Visitor

      Hi 

      I am not talking about slicer selection (based on slicer selection the column is adding to the table-it is working fine).

      Before that When I add the field parameter to the table visual, it is showing all the fields which are added to the field parameter (The table visual shouldn't show all the fields which are added to the field parameter (If the table visual shows all the fileds then what is the usage of field parameter concept).