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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

How to make calculated columns (column headers) as slicer?

Hi,

 

I have a simple request for my data. Basically for the graph below, I would like to have a slicer where I can choose which lines to appear; for example I just want Cost Condesate/PIB line only to show etc. These lines come from calculated columns from different tables. The idea is to have a slicer that has the options of the headers of these calculated columns where I can choose which calculcated colum data to appear or disappear from my graph.

 

The only solution I've tried so far is to merge the data from different tables and make custom columns instead of calculated columns in the Query editor ---> (Table A). Then, I duplicated the table and transposed to just get the column header in a new source ---> (Table B). I tried establishing a relationship between these two tables, but it will only allow me to make one relationship active between one column from Table A to Table B.

 

Any suggestion?

 

Power BI ask.PNG

 

1 ACCEPTED SOLUTION
xuexi1890
Helper I
Helper I

@Anonymous 

Hi 

if i understand you correctly, you may think it as a slicer for measures, below article might be helpful.

https://www.fourmoo.com/2017/11/21/power-bi-using-a-slicer-to-show-different-measures/

 

View solution in original post

2 REPLIES 2
xuexi1890
Helper I
Helper I

@Anonymous 

Hi 

if i understand you correctly, you may think it as a slicer for measures, below article might be helpful.

https://www.fourmoo.com/2017/11/21/power-bi-using-a-slicer-to-show-different-measures/

 

Anonymous
Not applicable

Thank you so much! It worked perfectly 🙂

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.