cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Add Filtered Value to Each Row

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
Highlighted
Anonymous
Not applicable

Re: Add Filtered Value to Each Row

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

Highlighted
Microsoft
Microsoft

Re: Add Filtered Value to Each Row

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.

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors