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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Sar_Aan
Frequent Visitor

Sum of value in filter

The quantity has multiple values occuring on a single date and I wanted to find out the count of resources where the sum for a day is more than 23.

Data:

DateResourceQuantity
4-1-2023A

17

4-1-2023B24
4-1-2023A6
4-1-2023C15
4-1-2023A

1

5-1-2023A

16

5-1-2023B24
5-1-2023A4
5-1-2023C10
5-1-2023A

4

Instead of giving count as 1 (only A) on 4-1-2023 and 5-1-2023 I want the result to be 2 (A & B) as sum of quantity of B is more than 23 (24).

What should I do?

Thanks in advance

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @Sar_Aan ,

 

try to plot a table visual with date column and a measure like:

measure = 
COUNTROWS(
    FILTER(
        VALUES(data[Resource]), 
        CALCULATE(SUM(data[Quantity]))>23
    )
)

 

it worked like:

FreemanZ_0-1698739491295.png

 

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @Sar_Aan ,

 

try to plot a table visual with date column and a measure like:

measure = 
COUNTROWS(
    FILTER(
        VALUES(data[Resource]), 
        CALCULATE(SUM(data[Quantity]))>23
    )
)

 

it worked like:

FreemanZ_0-1698739491295.png

 

Sar_Aan
Frequent Visitor

And I need to show the count for the month of April which should be 4.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors