Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Tarunika
Helper II
Helper II

Displaying a Column As dropdown depending upon selecting a value from a table

Hi all,

I have a table visual  consisting of Meters_ID column when i select a particular value from the table visuals i want to display the Events as a dropdown depending upon the selection this should happen dynamically.

 

Please refer the below image i want the last 5 Events dropdown .Can someone help me in achieving this

 

Tarunika_0-1669556853462.png

 

Meter_IDMeter AgeDev codeEvent1Event2Event3Event4Event5
11868045173SAABCDE
12013335174SAEDCBA
12078375096SAABCDE
12166605182SAABCDE
12117525166 ABCDE
12066104875PRABCDE
12255774901SAABCDE
12125885074PRABCDE
12214444510PRABCDE
12358945434 EDCBA
12354195061PREDCBA
12582144896SAEDCBA
12344944922SAEDCBA
12593935349AVEDCBA

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Tarunika ,

For display a column as dropdown, you need develop a custom visual to render. Below i provide a sample that use tooltip to achieve your needd without dropdown button.

Please try below steps:

1. create meaure with below dax formula

DC =
VAR cur_id =
    SELECTEDVALUE ( 'Table'[Meter_ID] )
VAR cur_code =
    CALCULATE (
        MAX ( 'Table'[Dev code] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Meter_ID] = cur_id )
    )
RETURN
    IF ( ISBLANK ( cur_code ), "DEV_CODE: NULL", "DEV_CODE: " & cur_code )
Events =
VAR cur_id =
    SELECTEDVALUE ( 'Table'[Meter_ID] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), 'Table'[Meter_ID] = cur_id )
VAR _val =
    CONCATENATEX (
        tmp,
        [Event1] & "

" & [Event2] & "

" & [Event3] & "

" & [Event4] & "

" & [Event5],
        
    )
RETURN
    _val
MG =
VAR cur_id =
    SELECTEDVALUE ( 'Table'[Meter_ID] )
VAR cur_age =
    CALCULATE (
        MAX ( 'Table'[Meter Age] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Meter_ID] = cur_id )
    )
RETURN
    IF ( ISBLANK ( cur_age ), "METER_AGE: NULL", "METER_AGE: " & cur_age )

2. configure the report

vbinbinyumsft_0-1669604682824.png

For more details, please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Tarunika
Helper II
Helper II

i dont want blank to be seen if nothing is selected. May i know how to remove that

Tarunika
Helper II
Helper II

Thank You @Anonymous  can we use this in cards 

Anonymous
Not applicable

Hi @Tarunika ,

For display a column as dropdown, you need develop a custom visual to render. Below i provide a sample that use tooltip to achieve your needd without dropdown button.

Please try below steps:

1. create meaure with below dax formula

DC =
VAR cur_id =
    SELECTEDVALUE ( 'Table'[Meter_ID] )
VAR cur_code =
    CALCULATE (
        MAX ( 'Table'[Dev code] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Meter_ID] = cur_id )
    )
RETURN
    IF ( ISBLANK ( cur_code ), "DEV_CODE: NULL", "DEV_CODE: " & cur_code )
Events =
VAR cur_id =
    SELECTEDVALUE ( 'Table'[Meter_ID] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), 'Table'[Meter_ID] = cur_id )
VAR _val =
    CONCATENATEX (
        tmp,
        [Event1] & "

" & [Event2] & "

" & [Event3] & "

" & [Event4] & "

" & [Event5],
        
    )
RETURN
    _val
MG =
VAR cur_id =
    SELECTEDVALUE ( 'Table'[Meter_ID] )
VAR cur_age =
    CALCULATE (
        MAX ( 'Table'[Meter Age] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Meter_ID] = cur_id )
    )
RETURN
    IF ( ISBLANK ( cur_age ), "METER_AGE: NULL", "METER_AGE: " & cur_age )

2. configure the report

vbinbinyumsft_0-1669604682824.png

For more details, please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.