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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
alpunlx
New Member

Get selected value from slicer to use it on line chart's x axis

Hello, I'm trying to get a value from the Slicer that I selected to use on the Line chart's x axis. But it doesnt work. I've created a column with a parameter to add those values to Slicer.

alpunlx_0-1689770247057.png

 

alpunlx_1-1689770272860.png

 

What im doing here is getting the weight from the table for example 2224 and divide it with selected value of Slicer and subrtact the decimals from that result by using INT() and than multiply it with the result.

This is the column that i use for run my function here

alpunlx_2-1689770296076.png

 

This is the measure one

alpunlx_3-1689770305878.png

 

And the problem is if i want to use Column, the value doesn't get transferred to the table. but if i want to use the Measure it transfers but i cant put it on the X Axis. The column can't get the value in real-time to the table.

I've searched for the Column one and i found this information:

alpunlx_4-1689770323166.png

 

The image of multiple tables that i want to transfer data in: 

alpunlx_5-1689770336874.png

 

So what can i do about it to transfer data to table?

I've tried to search about what i wanna try and found a way to fix it.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @alpunlx,

Current you can't create dynamic calculated column/table based on filter selections, they do not work on the same data level, and you can't use child level to affect their parent.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Since you can only use measure expression to interact with filter effect. I'd like to suggest you create an unconnected table with raw table axis values.

Then you can write measure formula with if statement to check the filter selection and current axis to prevent the calculation on not wanted ranges.(power bi will auto hide the axis not have correspond values)

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @alpunlx,

Current you can't create dynamic calculated column/table based on filter selections, they do not work on the same data level, and you can't use child level to affect their parent.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Since you can only use measure expression to interact with filter effect. I'd like to suggest you create an unconnected table with raw table axis values.

Then you can write measure formula with if statement to check the filter selection and current axis to prevent the calculation on not wanted ranges.(power bi will auto hide the axis not have correspond values)

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.