Forum Discussion
naseem_1973
2 years agoHelper 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
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)
Specialty = COUNT(Datadump[Speciality])/CALCULATE(COUNT(Datadump[Speciality]),ALL(Datadump[Speciality]))
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))
7 Replies
- ryan_mayuSuper User
confused about this. Is the last screenshot the same as the Excel calculation?
Then what's the expected output?
- naseem_1973Helper I
Sorry Sir,
Excel result is
Total 134 , transfer 13
- ryan_mayuSuper User
how you get total 134?