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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

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
v-yetao1-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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.