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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
syazwan95
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
xuexi1890
Helper I
Helper I

@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
Helper I
Helper I

@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/

 

Thank you so much! It worked perfectly 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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