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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Dunner2020
Post Prodigy
Post Prodigy

COUNTX gives same proportion

Hi there,

 

I am trying to display the count of applications w.r.t their age (how many days/weeks since application lodged) in pie chart. I created the following measure 

 

In progress application = 


COUNTX( FILTER(ALL('Main Table'),'Main Table'[Cases__r.Status] = "Awaiting Endorsement/Verification"),'Main Table'[App_ID])
I used All statement because I don't want to apply any existing filters of the page on the calculation.
When I displayed the above measure in the pie chart it shows an equal proportion of all age categories as shown in the picture:
Dunner2020_0-1643066855275.png

 

I am not sure where I made the mistake. Any help would be really appreciated.
 
Data here
1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Dunner2020 

 

Try this:

In progress application =
CALCULATE (
    COUNT ( 'Main Table'[App_ID] ),
    FILTER (
        ALLEXCEPT ( 'Main Table', 'Main Table'[Application Age] ),
        'Main Table'[Cases__r.Status] = "Awaiting Endorsement/Verification"
    )
)

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

Hi @Dunner2020 

 

Try this:

In progress application =
CALCULATE (
    COUNT ( 'Main Table'[App_ID] ),
    FILTER (
        ALLEXCEPT ( 'Main Table', 'Main Table'[Application Age] ),
        'Main Table'[Cases__r.Status] = "Awaiting Endorsement/Verification"
    )
)

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Users online (1,853)