Forum Discussion

Shameem's avatar
Shameem
Regular Visitor
2 years ago
Solved

Customize Parameter field

Hi , I have requirment of ad hoc report when one select of value from list  , 3 columns need to be displayed in table .

 

Eg:  List (Multi Select)

List
TRx Volume
NRx Volume
NBRx Volume

 

If TRx Volume is selected, then table should display TRx Volume, Prior TRx Volume, % Change TRx .

If NRx Volume is selected, then table should display NRx Volume, Prior NRx Volume, % Change NRx.

If both are selected then 6 measures are displayed. 

Please help how ca we achive these in Power BI.

 

Thanks

 

 

  • Shameem  Taking into consideration that TRx Volume, Prior TRx Volume, % Change TRx, NRx Volume, Prior NRx Volume, and % Change NRx are measures. Create a field parameter using these measures.

     

    After this is done, go to the field parameter table and create a column with DAX

     [ NRx/PRx = Left(`Field Parameter Column Name`, 3)].  This will create a column that will have two values NRx and PRx.

     

    Put that column in a slicer and on selection respective measures will be displayed. 

1 Reply

  • Shameem  Taking into consideration that TRx Volume, Prior TRx Volume, % Change TRx, NRx Volume, Prior NRx Volume, and % Change NRx are measures. Create a field parameter using these measures.

     

    After this is done, go to the field parameter table and create a column with DAX

     [ NRx/PRx = Left(`Field Parameter Column Name`, 3)].  This will create a column that will have two values NRx and PRx.

     

    Put that column in a slicer and on selection respective measures will be displayed.