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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Counting positive and negative values from the measure.

Hello,

I have created a Table visualization in the power bi report.

The visualised table contains Company name from the power bi table fields (Company) <- Collumn.
And the rest are the measures (images for reference below). Is there a way i can count postive and negative measurements? I would need a count of measurements that are positive and a count that are negative. Etc.

Thank you for the help.


1.PNG2.PNG

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

Try this Measure

 

 

CountPositives =
COUNTX (
    FILTER ( ALLSELECTED ( Companies[Company] ), [DynamicMonth] > 0 ),
    [DynamicMonth]
)

 

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

 

Try this Measure

 

 

CountPositives =
COUNTX (
    FILTER ( ALLSELECTED ( Companies[Company] ), [DynamicMonth] > 0 ),
    [DynamicMonth]
)

 

Anonymous
Not applicable

Zubair_Muhammad works like a charm.
Thank you very much.
Did count by hand when the values were filtered by year etc. Works great!
1.PNG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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