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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
naseem_1973
Helper I
Helper I

%age is wrong

Dear All,

 I require this result in power BI. 

I tried to work in PBI but the result is going wrong.

Excel calculation 

naseem_1973_2-1702451620051.png

 

Check both tables of PBI .

Table name data dump, specialty, and new encounter column names.

When I divide  "specialty" column count with  "new encounter" count then %age is wrong. 

 

Specialty %age = DIVIDE([Transfer],[New Encounter Count],0)

naseem_1973_0-1702451396318.png

Specialty = COUNT(Datadump[Speciality])/CALCULATE(COUNT(Datadump[Speciality]),ALL(Datadump[Speciality]))

naseem_1973_1-1702451485654.png

 

 

1 ACCEPTED SOLUTION

@naseem_1973 

pls provide the sample data and the expected output based on the sample data. In this problem, I can't use DAX to get 134.

maybe try 

COUNT(Datadump[Speciality])/CALCULATE(countrows(Datadump),ALL(Datadump))





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

7 REPLIES 7
ryan_mayu
Super User
Super User

@naseem_1973 

confused about this. Is the last screenshot the same as the Excel calculation? 

Then what's the expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Sorry Sir,

Excel result is 

naseem_1973_0-1702465423514.png

Total 134 , transfer 13

@naseem_1973 

how you get total 134? 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




It is my total entries manage internaly and other than 13 refer. 

Total entries in this table 134.

@naseem_1973 

pls provide the sample data and the expected output based on the sample data. In this problem, I can't use DAX to get 134.

maybe try 

COUNT(Datadump[Speciality])/CALCULATE(countrows(Datadump),ALL(Datadump))





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you brother it is working.

 

naseem_1973_0-1702615047144.png

 

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.