Forum Discussion

NumeritasMartin's avatar
NumeritasMartin
Frequent Visitor
2 years ago
Solved

Return a text value

Hello All,   After a little break from PBI I am trying to make a simply dashboard which is mostly working except for the text elements. I want to show the sector of a company, but am either returni...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi NumeritasMartin ,

    Please update the formula of your measure [Sector] as below and check if it can return your expected result...

    Sector =
    VAR SelectedAsset =
        SELECTEDVALUE ( 'Values'[Asset] )
    RETURN
        IF (
            ISFILTERED ( 'Values'[Asset] ) && NOT ( ISBLANK ( SelectedAsset ) ),
            CONCATENATEX (
                FILTER ( 'Values', 'Values'[Asset] = SelectedAsset ),
                'Values'[Profile]
            ),
            BLANK ()
        )

    If the above one can't help you get the expected result, please provide some raw data in your table 'Values' (exclude sensitive data) with Text format and your expected result. It would be helpful to find out the solution. You can refer the following link to share the required info:

    How to provide sample data in the Power BI Forum

     

    And 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