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
Djreddy
Regular Visitor

Avg Price increase %age is not same as sum of sales current year/Sum of sales of previous year

Hi . below is the summary of tables, while am trying to find the value in Power BI, avg shown as 1.3 when it is calculated by value  of CY &PY is 1.25. and there is difference which am unable to get in any of the visual . Please suggest the way to do the same.

  Value Prev YearValue Current Year%age of increase  
Raw Material X5194000.005700000.001.09742  
Raw Material X2690750.002501010.000.929484  
Raw Material X2800000.005248000.001.874286  
Sum10684750.0013449010.003.90119  
Avg 1.258710781.300397Avg of %age inc 
4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @Djreddy,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Dear Sheng,

As mentioned in my first mail, if you select any Raw material and try to find Avg  of following ( CY(EYF22)/PY(EYF22)) the value of this calculation is not same as  Avg of PI EYF 22(EYF22). below is raw data for your reference

 

AI1Product Type1Sourcercategory1PY(EYF 22)CY(EYF 22)PI EYF22(EYF 22)
Raw Material-1RM/IntermediateSourcer-1Herbicide4,560,000 3,450,0000.76
Raw Material-1RM/IntermediateSourcer-1Herbicide2,080,040 1,783,9250.86
Raw Material-2RM/IntermediateSourcer-4Insecticide5,194,000 5,700,0001.1
Raw Material-2RM/IntermediateSourcer-4Insecticide2,690,750 2,501,0100.93
Raw Material-3RM/IntermediateSourcer-4Insecticide2,800,000 5,248,0001.87
Raw Material-4RM/Intermediatesourcer-6Insecticide837,000 792,0000.95
Raw Material-4RM/Intermediatesourcer-6Insecticide6,092,000 6,460,8001.06
RM-14RM/IntermediateSourcer-2Fungicide336,140 357,4421.06
Raw Material-6RM/Intermediatesourcer-6Herbicide5,000,000 2,864,8900.57
Raw Material-6RM/IntermediateSourcer-2Herbicide2,204,400 2,354,7001.07
RM-7RM/IntermediateSourcer-3Fungicide3,894,583 6,586,7881.69
RM-8RM/IntermediateSourcer-4Insecticide2,784,376 2,784,3761
RM-9RM/IntermediateSourcer-4Insecticide1,428,395 1,974,3681.38
RM-10RM/IntermediateSourcer-1Herbicide43,075,982 ########1.11
RM-11RM/IntermediateSourcer-2Herbicide298,734 309,4781.04
RM-12RM/IntermediateSourcer-3Fungicide2,856,532 2,777,8880.97

Hi @Djreddy,

It seems like a common measure total level calculations issue when it handles with multiple aggregations, you can refer to the Greg’s blog to know how to solve this issue:

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

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.