cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Andrew_na_lang
Helper III
Helper III

Count do not match, hence, the percentage is messed up

Hi Fam,

I am confused. 

I have a table visualization that shows the number of customers with Not Yet and Yes under the ordered again column.

I counted all the Not yet and yes through function 

Count Order again = COUNTX(Customers, Customers[Ordered again])

I am now trying to get the percentage of all Not yet and Yes over the total, but the figures are not adding up. 

I exported the table as CSV and it tells me that the total is 126. 53 is Yes and 73 is Not Yet. 
Screenshot 2022-04-11 175935.png

Screenshot 2022-04-11 175108.png

Screenshot 2022-04-11 180249.png



The ordered again column has blank and no order rating yet that I do not want to count, just need all the not yet and yes. 






 
1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

Hi, @Andrew_na_lang ,
I tried to recreate your issue like this:

vojtechsima_0-1649687104618.png

This measure will get the percentage of Yes or Not Yet excluding other parts:

OrderedAgainMeasure = 

var uniquepart = COUNTAX(Test,Test[Ordered again])
var wholepart = COUNTAX(ALL(Test), Test[Ordered again])

return DIVIDE(uniquepart, wholepart)

View solution in original post

1 REPLY 1
vojtechsima
Super User
Super User

Hi, @Andrew_na_lang ,
I tried to recreate your issue like this:

vojtechsima_0-1649687104618.png

This measure will get the percentage of Yes or Not Yet excluding other parts:

OrderedAgainMeasure = 

var uniquepart = COUNTAX(Test,Test[Ordered again])
var wholepart = COUNTAX(ALL(Test), Test[Ordered again])

return DIVIDE(uniquepart, wholepart)

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

Power BI Dev Camp Session 25 with aka link 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, August 25 at 11a PDT for a great session with Ted Pattison!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors