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 September 15. Request your voucher.

Reply
Anonymous
Not applicable

Using two filter shows error

Hi,

 

I have this formula shows me this error.

 

New error.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Use ALL(tablename) in your formula.

Sample data as below.

Measure = 
CALCULATE (
    COUNT ( 'Table'[date when ***] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[planed count date] >= MIN ( 'Table'[planed count date] )
            && 'Table'[date when ***] >= MIN ( 'Table'[planed count date] )
    )
)

1.PNG

2.PNG

3.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , In All, keep either table name or column name. not both.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Thanks but now my second condition is not working. All I want that if I use Plallned count date slicer then my count should not be affected by the end range of the slicer.

 

new error2.PNGend range.PNG

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Use ALL(tablename) in your formula.

Sample data as below.

Measure = 
CALCULATE (
    COUNT ( 'Table'[date when ***] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[planed count date] >= MIN ( 'Table'[planed count date] )
            && 'Table'[date when ***] >= MIN ( 'Table'[planed count date] )
    )
)

1.PNG

2.PNG

3.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks @Anonymous, I really appreciate your help and explaining with example. I am stuck on this for days, 😞  the formula works but now giving me the desired value, what I want is a count against any dimension I put, it should not affect my planned date slicer end date. below is the excel example.

 

Its simple count of date lines, just with two date range condition

1. Planned date should not affect what's been selected in end date as I have shown below.

2. Date adjusted should always take count same as Planned date- start date but end date should be max of date adjusted.

 

new error23.PNG

@Anonymous , If you all table[date] in filter then you will only get that date in filter

Add all(Table[date]) separately, Use only table name in filter

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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