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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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]
)

 


Regards
Zubair

Please try my custom visuals

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]
)

 


Regards
Zubair

Please try my custom visuals
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors