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
ScottTynan
Frequent Visitor

Finding the % difference in sales for a product compare to average of the last two years

Hello All, 

 

I have a dataset of invoice information FY21, FY22 and building up FY23 as we progress through. I need to assess line by line for the F23 data to find the average of the sales for the last two years compared this current period. 
I have a date table linked to this revenue table. 
Below image is a snip of what I currently have with what I am hoping to be able to produce added to the RHS. 
It needs to ignore any filters on the visuals, page and report.

ScottTynan_0-1659424207175.png

 

3 REPLIES 3
daXtreme
Solution Sage
Solution Sage

@ScottTynan 

 

As far as I remember, one cannot ignore filters on the page or/and report level. Not via DAX at least. When you design your reports, you should always be aware of this limitation (or a feature - depending on how you look at this).

This ignores all filters. 

Last Invoiced =
var cdate = MAX('Revenue by Period'[Date]) var _result =

CALCULATE(MAX('Revenue by Period'[Date]),'Revenue by Period'[Date]<cdate,ALL('Revenue by Period'[Date])) return

IF(ISBLANK(_result),"NA",_result)

@ScottTynan 

 

OK, I have googled for it. Yes, it looks like you can override page level filters in a DAX measure 🙂 Looks like my skills are getting a bit rusty 🙂

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.