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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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