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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Sum on filtered result

So basically I have non distinct entries of people with planed days of work (2nd screenshot). A Person can only work 220 days per year, so I want to show only persons that have planed days > 220. so far so I good. I finally managed to write a measure that only shows me the persons wtih planned days > 220. BUT, the sum of my measure sums up ALL of the persons, not only of those who have more than 220 days.

 

Sure I can turn of the grand total, but I would like to see the grand total of the persons that have more than 220 planed days.

1.PNG2.PNG

2 REPLIES 2
v-xjiin-msft
Solution Sage
Solution Sage

Hi @Anonymous,

 

In Power BI desktop, when you put a numeric filed in Values of table visual. It can be aggregated here. It also means there's no need to use a measure to do a simple sum. And also you can use visual level filter to filter the values based on your condition.

 

Please refer to following sample:

 

2.PNG

 

As you can see in my sample. They all using the same dataset. The first table visual is my sample source data. The second table is the result of doing SUM in Values. Then the third table is defining a Visual level filter to filter the sum of Plan-PT Gesamt 2018 is greater than 220.

 

Thanks,
Xi Jin.

Anonymous
Not applicable

Thanks Xi Jin,

 

the problem ist that I do have only one table and secondly I can't use the visual filter, since I'm doing this in Excel DAX at the moment. We will switch to PowerBI sooner or later. But right now, I need a DAX formula which sums the grand total of only persons who have "Plantage Gesamt" > 220. And there are several ROWS with the same person, so you also have to sum up these first. I can't get it work.. At least the correct grand total.. 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.