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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
aishaakhter18
Helper I
Helper I

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 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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.