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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
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
Top Kudoed Authors