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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RJ
Resolver II
Resolver II

Measure to ignore one filter ie Year = 2014 when filter for year 2013 is selected

Hi

 

I want to lock a Year = 2014 measure

 

I have tried two measures

Sales2014b = SUMX( FILTER( (InvLines), RELATED(InvHeader[Year] ) = 2014), ( InvLines[SalesValue]))

and

Sales2014 = if (related(InvHeader[Year]) = 2014 , InvLines[Invoiced Quantity] * InvLines[OrderPrice] * (1 - InvLines[Line Discount %]) * (1- RELATED(InvHeader[Invoice Discount %])))

 

Both give the same correct result. But when I filter Year = 2013 it blanks the 2014 column out. I want to keep this value but only exclude this one filer. All the other filters should apply.

 

Qlik can do this using set analysis but I just can not work out how to do it in Power BI. I've tried "all" and it didn't work

 

Thanks for any assistance

1 ACCEPTED SOLUTION
RJ
Resolver II
Resolver II

ok

 

This seems to work

 

Sales14 = CALCULATE(sum (InvLines[SalesValue]), InvHeader[Year] = 2014)

View solution in original post

1 REPLY 1
RJ
Resolver II
Resolver II

ok

 

This seems to work

 

Sales14 = CALCULATE(sum (InvLines[SalesValue]), InvHeader[Year] = 2014)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.