Forum Discussion

aishaakhter18's avatar
2 years ago

Wrong Percentage calculation

When I am using the two DAX below and putting it in pie chart to get the percentage,  what its doing its counting the total response of RA and then taking % out of it 

Total RA response = 61 , if yes are 38 , its giving me 62% approx while it should do 

Total # of prog = 45 and its should divide 38/45 and take the %  should be 84% approx

how to fix this 


 

No1 

RA Insigts Yes Count = COUNTROWS(

    SUMMARIZE(

        FILTER('my tabel', 'my table[Insights for RA] = "Yes"),

        'my tabler'[PROGRAM]

 

    )

)

 

And 

 

RA Insight NoPlannedUA_CountExcludeYes = COUNTROWS(

    SUMMARIZE(

        EXCEPT(

            FILTER(

                'my table',

                'my table'[Insights for RA] IN {"No", "Planned", "Under Assessment", " "}

            ),

            FILTER(

                'my table',

                'my table'[Insights for RA] = "Yes"

 

            )

        ),

        'my table'[PROGRAM]

 

    )

)

1 Reply