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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.