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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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