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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AmirFirdaus9509
New Member

How to get Success rate of out Grand Total

Hi , I need help in solving an issue .

I am fairly knowledgable in Excel but still new in Power Bi.
I have export a data from excel file that contain three header. Month (January , February , March), Country (England , Brazil , US ) and Status (Response/No Response). 

 

AmirFirdaus9509_1-1617780640713.png

Here is a reference to what i am trying to project in Power Bi , where i would want the graph to show the Response Percentage out of the grand total

 

AmirFirdaus9509_2-1617780802350.png


From here , i have use a bar graph and try to get "Response" percentage out of the grand total of . But the Power Bi is taking the amount of Response/No Response. How can i exclude the "No Response" and get the percentage as shown in the Pivot Table.

Thank you very much

 

 

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @AmirFirdaus9509 

I would suggest you to create measure as below:

Measure_count of month = CALCULATE(COUNT('Table'[Month]),ALLEXCEPT('Table','Table'[Month],'Table'[Country]))
Measure_count of Response Status = CALCULATE(COUNT('Table'[Month]),FILTER(ALLEXCEPT('Table','Table'[Month],'Table'[Country]),'Table'[Response Status]="Responded"))
Measure_percentage = [Measure_count of Response Status]/[Measure_count of month] 

If you just  want to show "Responded" Percentage out of grand total in your original table, you can also try calculated columns as below:

Count_of_month = CALCULATE(COUNT('Table'[Month]),ALLEXCEPT('Table','Table'[Month]))
Count_of_Response Status(month) = CALCULATE(COUNT('Table'[Month]),FILTER(ALLEXCEPT('Table','Table'[Month]),'Table'[Response Status]="Responded"))
Percentage = 'Table'[Count_of_Response Status(month)]/'Table'[Count_of_month]

69.png

Please check my  attached pbix file for more details.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi, @AmirFirdaus9509 

I would suggest you to create measure as below:

Measure_count of month = CALCULATE(COUNT('Table'[Month]),ALLEXCEPT('Table','Table'[Month],'Table'[Country]))
Measure_count of Response Status = CALCULATE(COUNT('Table'[Month]),FILTER(ALLEXCEPT('Table','Table'[Month],'Table'[Country]),'Table'[Response Status]="Responded"))
Measure_percentage = [Measure_count of Response Status]/[Measure_count of month] 

If you just  want to show "Responded" Percentage out of grand total in your original table, you can also try calculated columns as below:

Count_of_month = CALCULATE(COUNT('Table'[Month]),ALLEXCEPT('Table','Table'[Month]))
Count_of_Response Status(month) = CALCULATE(COUNT('Table'[Month]),FILTER(ALLEXCEPT('Table','Table'[Month]),'Table'[Response Status]="Responded"))
Percentage = 'Table'[Count_of_Response Status(month)]/'Table'[Count_of_month]

69.png

Please check my  attached pbix file for more details.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Angith_Nair
Continued Contributor
Continued Contributor

Hi @AmirFirdaus9509 ,

Try to use this code..

 

Measure =
CALCULATE (
            DIVIDE( [Count of Response Status], [Count of Month] ),
            Table[Status] = "Response"
)

and format the measure as % as shown below...

Angith_Nair_0-1617781897404.png

 

 

Hi @Angith_Nair  , 
I think the code is based on the Pivot Table from Excel Source , 
I have try and alter the data based on this table in the Power Bi Query

AmirFirdaus9509_0-1617783717760.png

 

Is it possible to show "Responded" Percentage out of grand total from here?

Thank you for the help

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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