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
ejhornyak
Frequent Visitor

Add Filtered Value to Each Row

I have a table called Location List and a column called Year.  For my visuals I am using the Year Column as a Filter.

 

I want to do some additional analays so when I select a Year with the filter I want that value to show up in a new column in each row of the table.  From there I want to add a new column that does a simple if statement ( if(Year<= "Selected Year", 1,0)

 

Is something like that possible?

 

Thanks,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I guess it's not possible.
Unfortunately you can't get the slicer (filter) value.
If someone know how do it, please, share with us.

 

edit: maybe some workarround using dax (isfiltered or firstnonblank) 

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @ejhornyak,

 

In your scenario, if the table visual fields are also from table 'Location', I would suggest you create an extra table containing the unique Year values, then, add this [Year] column from new table into slicer.

 

To get the slicer selection, you could refer to this measure:

Selected Year=SELECTEDVALUE('NewTable'[Year])

 

Best regards,

Yuliana Gu

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

I guess it's not possible.
Unfortunately you can't get the slicer (filter) value.
If someone know how do it, please, share with us.

 

edit: maybe some workarround using dax (isfiltered or firstnonblank) 

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.