cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
freevission2019
Helper I
Helper I

Difference , the % of difference and average

Hi,

I am under intermidiate user of Power Bi and I need your help.

 

the file that I work on is for POs; so the original table named " POs".

I have three columns:

1- Quantity ordered.

2- PO Value in Local Currency ( for all quantities ) 

3- Price in Purchase Requisition ( the price for 1 quantity)

the benefitiary initiates PR and puts estimation price, then after bidding, the PO is issued. I calculated in excel the following:

  •   PRICE ESTIMATION ACCURACY = 3-2/1
  • PRICE ESTIMATION ACCURACY %= PRICE ESTIMATION ACCURACY/ Price in Purchase Requisition
  • The average of PRICE ESTIMATION ACCURACY %

 

How can I do the same in Power Bi using Measures, not created Columns, if possible.

 

Thanks.

 

POs Calculations.PNG

 

1 REPLY 1
Ailsa-msft
Community Support
Community Support

Hi @freevission2019 

Please correct me if I wrongly understood your question.

I get the results you need by measures . Refer to the screenshot below .

Ailsa-msft_0-1618220022405.png

 

PRICE ESTIMATION ACCURACY = CALCULATE(SUM('Table'[Price in Purchase Requisition]))-CALCULATE(SUM('Table'[PO Value in Local Currency])/SUM('Table'[Quantity]))

PRICE ESTIMATION ACCURACY % = CALCULATE('Table'[PRICE ESTIMATION ACCURACY])/CALCULATE(SUM('Table'[Price in Purchase Requisition]))

But I don't quite understand you said The average of PRICE ESTIMATION ACCURACY % . Can you provide the value of this field ?

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors