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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Dynamic column based on slicer selection

Hi 

I have a list of company names and their blinded company names as below.

mahi_r_0-1620208780921.png

If i put the name in slicer and selected a value(let it be "ABC").
The output in the column should be 

mahi_r_1-1620208887418.png


Please help me to create a dynamic column that changes based on slicer selction.

Thanks,
Mahesh R



8 REPLIES 8
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution to help others find it.
 
Best Regards
Lucien
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Calculated columns are calculated only ONCE, AT REFRESH.  They do not change in response to measures, or slicer selections.

The only way  just as @Jihwan_Kim  mentioned.

This method can achieve the results you expect, but it does have the disadvantage of not being able to select multiple values.

v-luwang-msft_0-1620783478814.png

Best Regards

Lucien

 

v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

You could use the following measure:

Output =
VAR test1 =
    CONCATENATEX ( VALUES ( 'Slicer'[name] ), [Name], "," )
VAR test3 =
    MAX ( 'Table'[Name] )
VAR test2 =
    SEARCH ( test3, test1,, 0 )
VAR test4 =
    IF ( test2 > 0, MAX ( 'Table'[Name] ), MAX ( 'Table'[Blinden Name] ) )
RETURN
    test4

 

Final get the below:

If you choose one value:

v-luwang-msft_0-1620381699671.png

 

If you choose multiple  values:

v-luwang-msft_1-1620381751873.png

You could download my pbix file if you need!

 

Best Regards

Lucien

Anonymous
Not applicable

Hi @v-luwang-msft 

You created a measure to get the expected output where i need the same funtionality in Column.
So that i can use this in column of stacked chart.

Thanks 
Mahesh R

Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I am not sure whether I understood your question correctly, but please check the below picture and the sample pbix file.

I hid the very first column on the left side of the table visualization (red color area), and tried to only show the Outcome Column on the visualization.

 

Picture2.png

 

Output =
VAR selectedname =
ALLSELECTED ( 'Company Names'[Name] )
RETURN
IF (
HASONEVALUE ( 'Company Names'[Name] ),
IF (
SELECTEDVALUE ( 'Blinded Names'[Name] ) IN selectedname,
SELECTEDVALUE ( 'Blinded Names'[Name] ),
SELECTEDVALUE ( 'Blinded Names'[Blinded Name] )
),
SELECTEDVALUE ( 'Blinded Names'[Blinded Name] )
)
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi @Jihwan_Kim 

The Output is coming as expectd only but the issue is I need a column with this similar functionality.
So that i can use that conditional colum in the column of the stacket chart.

Thanks
Mahesh R

Hi, @Anonymous 

Thank you for your feedback.

At this moment, the only way that I can think of is to create a new table like below.

Please check the below picture and the sample pbix file's link down below.

 

Picture3.png

 

I created a new table in two steps.

 

New Table =
CROSSJOIN (
VALUES ( 'Blinded Names'[Name] ),
VALUES ( 'Blinded Names'[Blinded Name] )
)
 
 
New Column =
IF (
LOOKUPVALUE (
'Blinded Names'[Blinded Name],
'Blinded Names'[Name], 'New Table'[Name]
) = 'New Table'[Blinded Name],
'New Table'[Name],
'New Table'[Blinded Name]
)
 
 
 
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

HI @Jihwan_Kim 

Full join for a table with 6Crore reocrds may cause a issue will try it once .


Thanks 
Mahesh R
 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.