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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RexaZii93
Helper I
Helper I

Easy Question, I want to remove ALL from this command

 

 

I have this command:

 

CALCULATE (
Count ( 'AMS Flights Data'[Arr/ Dep]),
FILTER (
ALL ( 'AMS Flights Data' ),
COUNTROWS (
FILTER (
'AMS Flights Data',
EARLIER ( 'AMS Flights Data'[Actual Date] ) = DATEADD ( 'AMS Flights Data'[Actual Date], -7, Day)
)
)
)
)
 
Its working fine, but I can't apply any filtering to it, I need to keep the command but remove this part:
FILTER (
ALL ( 'AMS Flights Data' ),
 
I tried multiple ways but didn't work
 
Please help
 
1 ACCEPTED SOLUTION

@RexaZii93 

Please try

Measure1 =
CALCULATE (
COUNT ( 'AMS Flights Data'[Arr/ Dep] ),
DATEADD ( 'Date'[Date], -7, DAY )
)

View solution in original post

11 REPLIES 11
tamerj1
Super User
Super User

Hi @RexaZii93 

Use ALLSELECTED 

 

I tried Allselected but no data is showing in my chart:

 

Screenshot (57).png

@RexaZii93 

You have to use a date table

I have a date table though the formula works fine with out filtering it shows the last 7 days according to the date I use, but when I apply a filter on the chart itself it does not change.

@RexaZii93 

Would you please again the frmula you are currently using?

 
This one:
 
Count ( 'AMS Flights Data'[Arr/ Dep]),
FILTER (
ALL ( 'AMS Flights Data' ),
COUNTROWS (
FILTER (
'AMS Flights Data',
EARLIER ( 'AMS Flights Data'[Actual Date] ) = DATEADD ( 'AMS Flights Data'[Actual Date], -7, Day)
)
)
)
)
 
My formula does filter date fine so if I chose any date it would substract 7 days automatically, but when I apply another filter on visual it doesn't effect it I believe the issue is with this part which am unable to remove:
FILTER (
ALL ( 'AMS Flights Data' ),
 

@RexaZii93 

Please try

Measure1 =
CALCULATE (
COUNT ( 'AMS Flights Data'[Arr/ Dep] ),
DATEADD ( 'Date'[Date], -7, DAY )
)

I tried but it shows no value and its weird, even without filter this formula shows Blank.

@RexaZii93 

Please make sure you're using only the date column from the date table in your visual and slicers. 

Thanks it worked when I used callendar date

I tried but it shows no value and its weird, even without filter this formula shows Blank.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.