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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.