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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
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.