cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
syazwan95 Frequent Visitor
Frequent Visitor

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

Accepted Solutions
xuexi1890 Regular Visitor
Regular Visitor

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

@syazwan95 

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 Regular Visitor
Regular Visitor

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

@syazwan95 

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

syazwan95 Frequent Visitor
Frequent Visitor

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

Thank you so much! It worked perfectly 🙂

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors