Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Field Parameter with Matrix Visual for dynamic column selection

Hi ,

I have used Field parameters for this and fields got as slicers and it is working fine for dimesions

 

Problem

When i used measures into this field parameter it does not work accurately. 

 

Could someone please help with this?    

 

amitchandak   JihwanKim 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

    You can refer the following links to use Field parameters:

    Fields parameters in Power BI

    Slice by =
    {
        ("Brand", NAMEOF('Product'[Brand]), 0),
        ("Category", NAMEOF('Product'[Category]), 1),
        ("Color", NAMEOF('Product'[Color]), 2),
        ("Continent", NAMEOF('Customer'[Continent]), 3),
        ("Country", NAMEOF('Customer'[Country]), 4)
    }

    Field parameters in Power BI

     

    As you said, it does not work accurately when used measures into this field parameter. It means the data display incorrectly on the visual or something else? Could you please provide some sample data in the table 'T_R_RAR_REV_OPEN_BAL_DTLD_ASSGMT_LVL'  and the formula if [SALES_CONTRACT_TYPE],[ITEM_CATEGORY]and [POB_TYPE]are measures? What's your expected result with special examples and backend logic? It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    You can refer the following links to use Field parameters:

    Fields parameters in Power BI

    Slice by =
    {
        ("Brand", NAMEOF('Product'[Brand]), 0),
        ("Category", NAMEOF('Product'[Category]), 1),
        ("Color", NAMEOF('Product'[Color]), 2),
        ("Continent", NAMEOF('Customer'[Continent]), 3),
        ("Country", NAMEOF('Customer'[Country]), 4)
    }

    Field parameters in Power BI

     

    As you said, it does not work accurately when used measures into this field parameter. It means the data display incorrectly on the visual or something else? Could you please provide some sample data in the table 'T_R_RAR_REV_OPEN_BAL_DTLD_ASSGMT_LVL'  and the formula if [SALES_CONTRACT_TYPE],[ITEM_CATEGORY]and [POB_TYPE]are measures? What's your expected result with special examples and backend logic? It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards