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! Request now

Reply
dwhittaker1
Helper II
Helper II

prevent column from being sliced by date

I wrote the measure below in hopes that this measure would be uneffected by the date column on the filter pane. It is in not working, does any one have any suggestions?
 
Gross Sales 2022 = CALCULATE(SUM(FactSalesInvoiceLine[InvoiceLineAmount]),FILTER(DimDate,DimDate[Year]= 2022),ALL(DimDate[Date]))
 
dwhittaker1_0-1712711122974.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi  @dwhittaker1 
Modify the measure for :
Gross Sales 2022 = CALCULATE(SUM(FactSalesInvoiceLine[InvoiceLineAmount]),ALL(DimDate), 'DimaDate[year]=2022)
it should work.
That is how it looks at my example (with other data) :

 

pbix is attached

 

 

Ritaf1983_1-1712715546875.png

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Does this work?

Gross Sales 2022 = CALCULATE(SUM(FactSalesInvoiceLine[InvoiceLineAmount]),'DimaDate[year]=2022)


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ritaf1983
Super User
Super User

Hi  @dwhittaker1 
Modify the measure for :
Gross Sales 2022 = CALCULATE(SUM(FactSalesInvoiceLine[InvoiceLineAmount]),ALL(DimDate), 'DimaDate[year]=2022)
it should work.
That is how it looks at my example (with other data) :

 

pbix is attached

 

 

Ritaf1983_1-1712715546875.png

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors