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

values() as filter

Hi , 

I'm having difficulty understanding how values() can be used to restore a filter. I know values() will return a table of unique values, but I don't understand how values() restores the year-quarter filter in my table even though I have written removefilters() in the same function. Also how does the year-quarter values returned from the values() table get linked to the year-month filter in the matrix table ? I think the year-month filter in the table should not work any more since I have write removerfilters(). 

 

Below is the video which I used to generate the values() function. Maybe someone can explain to me what Macro Russo means in the video.

https://www.youtube.com/watch?v=LKj4GLJA-lw

 

values() as a filter.png

 

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

In your formula, you have used REMOVEFILTERS() which removes filters from the whole calendar table then you have used VALUES with Year Quarter as a filter argument in CALCULATE function. Basically, you are providing a table filter to the CALCULATE function whereby the expression is evaluated only with Year Quarter from the Calendar table.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@Anonymous 

In your formula, you have used REMOVEFILTERS() which removes filters from the whole calendar table then you have used VALUES with Year Quarter as a filter argument in CALCULATE function. Basically, you are providing a table filter to the CALCULATE function whereby the expression is evaluated only with Year Quarter from the Calendar table.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.