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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Dynamic Column calculation based on Slicer Selection

I have Below tabels

Table1

Values   CITY        County 

 1            Delhi      IND

 2            Pune      IND

 3            Hyd        IND

 

City_Table

Pune  Hyd  County

P         A       IND

Q        B       IND

R         C       IND

 

I have one multi value select slicer on 'Table1'[Values]

If user selects 1 then hardcoded value Delhi should appear as column name and column Value.

If user select 2 then Pune will be Column name and p Q R is column Data. like that

 

So OutPut will be like this

If 1,2 Selected on Slicer

 

 

Delhi   |   Pune

--------------------------------

Delhi       P

Delhi       Q

Delhi       R

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

For your requirement, I'm afraid it couldn't achieve in Power BI for now.

Dynamic Column name is not possible for now, and value couldn't match with other columns dynamically

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.