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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Get a sum without the visuals filters

Hi

I have a visual as shown in the picture below. The rows are a buildings "energy grade" which is a letter from A to E and below are the buildings in thos categories. The measure "Sum utleieareal NY" (see below), is the column "Sum utleieareal" in the visual. Now it just sums up the square feet for each building.

 

The problem is, a building can have multiple classifications. A building can have for examples office spaces with the classification "D" and storage space with the classification "E". This is what is happening for "Berger Omlastningssentral" (First row in D and first row in E). What I want is that the measure "Sum utleieareal NY" gives me the total of thos two which is 1062 + 3621 = 4683. I tried creating a new measure "Test Sum utleieareal NY", and this gave the correct sum for "Berger Omlastningssentral" (see picture). However, as seen in picture 2, the column "Sum utleieareal" (marked in yellow) has a lot of empty values. These are rows which are not supposed to show under that energy character, but rather dupolicates because of the measure contains an "All" function. How can I get the correct sums and still show the correct filtering?

 

Anyone know how to do this?

 

The relationships between the tables are also attached below.

 

Sum utleieareal NY = SUM('Sertifiseringer alle bygg'[Fordeling areal energimerke])

Test Sum utleieareal NY = CALCULATE(SUM('Sertifiseringer alle bygg'[Fordeling areal energimerke]), ALL(Energiklassifisering[Karakter]))

 

Haroon950_0-1670883841525.pngHaroon950_1-1670883847914.png

 

 

2 REPLIES 2
v-jialluo-msft
Community Support
Community Support

Hi  @Anonymous ,

 

With your description, you need to sum up some specific data.

This requires you to provide sample data and expected output. You can try it first:

Test Sum utleieareal NY = CALCULATE(SUM('Sertifiseringer alle bygg'[Fordeling areal energimerke]), ALLEXCEPT(Energiklassifisering[Karakter]))

 

Best Regards,
Gallen Luo

Anonymous
Not applicable

Hi
This does not work. I get the same output as in picture 1. Same as the formula Sum utleieareal NY = SUM('Sertifiseringer alle bygg'[Fordeling areal energimerke]).

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors