cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
raju4234 Frequent Visitor
Frequent Visitor

% Calculations using % not resulting expected values

Hi 

 

We are trying to replicate a solution that was built using Cognos in Azure/Power BI.

We have loaded all the required tables and created a data model with in Powe BI and we are using Driect Query.

We need to derive a calculation which is combinition of 4 formulas, they are used repertietly with in the final formula.

Following is the formula:

 

((100*(1-[Green Cull % (of cast)])*( 1-[1-F Pcs Cull % (of Inspect)]-Inspection[%1F Rework]))+
(100*(1-[Green Cull % (of cast)])*Inspection[%1F Rework]*(1-[1-F Pcs Cull % (of Inspect)]-Inspection[%1F Rework]))+
(100*(1-[Green Cull % (of cast)])*Inspection[%1F Rework]*[2-F Rework % (of 2-F Inspect)]*(1-[1-F Pcs Cull % (of Inspect)]-Inspection[%1F Rework]))+
(100*(1-[Green Cull % (of cast)])*Inspection[%1F Rework] * POWER([2-F Rework % (of 2-F Inspect)],2)*(1-[1-F Pcs Cull % (of Inspect)]-Inspection[%1F Rework]))+
(100*(1-[Green Cull % (of cast)])*Inspection[%1F Rework] * POWER([2-F Rework % (of 2-F Inspect)],3)*(1-[1-F Pcs Cull % (of Inspect)]-Inspection[%1F Rework]))+
(100*(1-[Green Cull % (of cast)])*Inspection[%1F Rework] * POWER([2-F Rework % (of 2-F Inspect)],4)*(1-[1-F Pcs Cull % (of Inspect)]-Inspection[%1F Rework])))/100

 

All the components of the formul give the correct results but when I combine the calcualtions in the above formula I get a huge number insted of %

 

Please let me know what I am missing here.

 

Regards

Raju

 

1 ACCEPTED SOLUTION

Accepted Solutions
raju4234 Frequent Visitor
Frequent Visitor

Re: % Calculations using % not resulting expected values

@Eric

 

The issues is now resolved, the % were done with in the calculaton its self , So I have changed the formula and used the "formatting" to represnt the % insted of calculating in the formaula.

 

Regards

Raju

View solution in original post

3 REPLIES 3
Moderator Eric_Zhang
Moderator

Re: % Calculations using % not resulting expected values

@raju4234

 

Your problem is vague, where did you apply the fomular, and how do you verify that the components work in Power BI desktop?

Please be more specific on the scenario, better to represent the problem by giving some sample data and a demo.

raju4234 Frequent Visitor
Frequent Visitor

Re: % Calculations using % not resulting expected values

@Eric

 

The issues is now resolved, the % were done with in the calculaton its self , So I have changed the formula and used the "formatting" to represnt the % insted of calculating in the formaula.

 

Regards

Raju

View solution in original post

Moderator Eric_Zhang
Moderator

Re: % Calculations using % not resulting expected values

@raju4234

 

Thanks for posting back. Could you please share the correct fomula and accept it as solution to close this thread. The solution may help people who have the similar question.

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)