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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Jill
Frequent Visitor

Remove a column from report filter and add more filters in measure - Quote and Order

Hi I have table with columns

Quote_Num, Quote_EntryDate, Sales Type, Product Line, Quote_Status, Order_Date.

The report has filter on Quote_EntryDate, Sales Type and Product Line.

I try to create a calculation that count the number of win within this year regardless Quote_EntryDate.

 

CALCULATE(DISTINCTCOUNT(QuoteHistoryReport[Quote_Num]),FILTER(QuoteHistoryReport,QuoteHistoryReport[Quote_EntryDate].[Date]>=MIN(QuoteHistoryReport[Quote_EntryDate])),FILTER(QuoteHistoryReport,QuoteHistoryReport[Quote_Status]="W"),FILTER(QuoteHistoryReport,QuoteHistoryReport[Order_Date].[Year]=YEAR(TODAY())))
 
 
 

however this return result still has Quote_EntryDate filtered.

Any clue?

 

 

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Jill ,

 

Do you mean that "Quote_EntryDate" column is in the field "Filters on this report" and you want the new measure to ignore this report level filter?

If so, try this:

Measure =
CALCULATE (
    DISTINCTCOUNT ( QuoteHistoryReport[Quote_Num] ),
    FILTER (
        ALL ( QuoteHistoryReport ),
        QuoteHistoryReport[Quote_EntryDate].[Date]
            >= MIN ( QuoteHistoryReport[Quote_EntryDate] )
    ),
    FILTER ( ALL ( QuoteHistoryReport ), QuoteHistoryReport[Quote_Status] = "W" ),
    FILTER (
        ALL ( QuoteHistoryReport ),
        QuoteHistoryReport[Order_Date].[Year] = YEAR ( TODAY () )
    )
)

 

Best Regards,

Icey

 

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

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Jill ,

 

Do you mean that "Quote_EntryDate" column is in the field "Filters on this report" and you want the new measure to ignore this report level filter?

If so, try this:

Measure =
CALCULATE (
    DISTINCTCOUNT ( QuoteHistoryReport[Quote_Num] ),
    FILTER (
        ALL ( QuoteHistoryReport ),
        QuoteHistoryReport[Quote_EntryDate].[Date]
            >= MIN ( QuoteHistoryReport[Quote_EntryDate] )
    ),
    FILTER ( ALL ( QuoteHistoryReport ), QuoteHistoryReport[Quote_Status] = "W" ),
    FILTER (
        ALL ( QuoteHistoryReport ),
        QuoteHistoryReport[Order_Date].[Year] = YEAR ( TODAY () )
    )
)

 

Best Regards,

Icey

 

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

Fowmy
Super User
Super User

@Jill 

Try:

Measure =
CALCULATE (
    DISTINCTCOUNT ( QuoteHistoryReport[Quote_Num] ),
    FILTER ( QuoteHistoryReport, QuoteHistoryReport[Quote_Status] = "W" ),
    FILTER (
        QuoteHistoryReport,
        QuoteHistoryReport[Order_Date].[Year] = YEAR ( TODAY () )
    )
)

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

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

dedelman_clng
Community Champion
Community Champion

Hi @Jill  - try this

 

NumWins =
CALCULATE (
    DISTINCTCOUNT ( QuoteHistoryReport[Quote_Num] ),
    FILTER (
        ALL ( QuoteHistoryReport ),
            QuoteHistoryReport[Quote_Status] = "W" && 
               QuoteHistoryReport[Order_Date].[Year] = YEAR ( TODAY () )
    )
)

 

ALL removes all filters from the table (including report-level filters) and then we just apply back what filters we do want applied.

 

Hope this helps

David

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.