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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Martynas_BI
Frequent Visitor

multi level filtering

Hi,

 

I have the following table in Power BI report view, which is affected by a date filter

Martynas_BI_0-1691250435833.png

 

I would like to be able to create a measure that would calculate the sum of the inventory for a particular region respecting the report page date filter (I have added the expected output I would like to get below to make it clearer)

Martynas_BI_1-1691250526120.png

 

I have been playing around with various filters, it seems to be relatively simple but complex topic at the same time for me.

The sample dataset could be found here:
https://docs.google.com/spreadsheets/d/18oXErJLYF_ExELsBvznenUIO2s3Qs_FRkapCEEB0jCA/edit#gid=0

 

Any advice would be highly appreciated.

 

Many thanks,

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @Martynas_BI 
Allexcept is the function that worked perfectly:

sum per region = calculate (sum('Table'[Inventory]),ALLEXCEPT('Table','Table'[Region]))
Ritaf1983_0-1691257886236.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

@Ritaf1983 

thanks for the suggestion, unfortunately that's not it. I have used this formula in my sample snippet, however, it's not exactly what I am looking for.

 

Please note that I have a larger dataset (I have added a few more months of data to the sample data set, maybe that will make it a bit clearer). I have applied a report level filter of "date", which takes into account only the values corresponding between Jan 1st to Apr 30th of 2023. I would like this to be represented in the table as per the second snippet provided.

You got the correct numbers as per my Excel snippet as I have not added my full dataset, and only provided a sample. Apologies if that caused any confusion, I've added a fuller representation of the dataset.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.