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
GunnerJ
Post Patron
Post Patron

Change Filter Value names

I have a set of filters that I'm hoping the end user can use to select values to be used in a calculation. The values are for certain years so I'd like to show the year instead of the value as it may not make sense to see a random number and to know what year it corresponds with.

 

Here's an example. This value is for the year 2018 and I'd like my filter to show "2018" instead of the number but still be able to use the number in a calculation. 

Filter Names.PNG

1 ACCEPTED SOLUTION

Example.png

Hi,

here you see the original Table with the data. In the second picture you see the table visual with the values and the years also a slicer with the years. In the third picture you see how I activate the filter and you see it works. The visual only shows the value for 2016. 

 

Best,

Kathrin

View solution in original post

5 REPLIES 5
KBO
MVP

Hi,

do you have a date column in your table or instead a date dimension in your model? Than you can use this instead of the value.

 

Best Kathrin

@KBO 

Here's the table in question. I do have a date column for the year. In the Equity Column you can ignore the year I put in before the number. I was just experimenting.

Asset table.PNG

Than its easy - put the years as value in the filterpane or in the slicer and you can filter after the Values in one specific year 🙂

 

Best Kathrin

@KBO I guess I'm a bit confused on how to use the selectedvalue function to grab a value not shown in the filter. I understand they're on the same line so there's a connection there but do you have an example of that being used?

Example.png

Hi,

here you see the original Table with the data. In the second picture you see the table visual with the values and the years also a slicer with the years. In the third picture you see how I activate the filter and you see it works. The visual only shows the value for 2016. 

 

Best,

Kathrin

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.