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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

Filtering everything but one column in a table?

Hi, 

 

I have got a filtering issue here. I created a measure for finding when a keyword was first seen based on the date table and the calculate funciton: 

First Seen = CALCULATE(FIRSTDATE([Date]), ALL([Date]))

However, my first date column is limited by my calendar table. In other words, whenever I change the date, the first seen date changes as well. 

 

To give you an example, let's say that keywords appeared on 6th May for the first time. Therefore, with the maximum date range, the chart will correctly show: 

AndrejBI_0-1600418871633.png

Nevertheless, when I change to let's say last 3 months, the data is filtered by the calendar filter: 

AndrejBI_1-1600418926634.png

This is obviously wrong as the keywords have appeared earlier. Is there any way how to overcome this issue? Such as, unfilter one column in the table? 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I solved it using this formula: 

First Seen = CALCULATE(MIN([Date]), ALL('Calendar'[Date]))

 And then applying filter for impressions >0

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , I doubt you need all selected

Try

First Seen = CALCULATE(FIRSTDATE([Date]), ALLSELECTED([Date]))

 

First Seen = CALCULATE(Min([Date]), ALLSELECTED([Date]))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak the same issue as before,

 

I am actually trying to get rid off the filter created by calendar slicer for this specific column, not to apply it: 

AndrejBI_0-1600419967425.png

This is the output I got using 'ALLSELECTED' function

 

Anonymous
Not applicable

I solved it using this formula: 

First Seen = CALCULATE(MIN([Date]), ALL('Calendar'[Date]))

 And then applying filter for impressions >0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.