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
Anonymous
Not applicable

How to get sum of 20% of individual measure values

Hi  All,

I am very new to Power BI and DAX calculation.

I have 5 Categories( A, B, C, D, E) with score value. That score itself is calculated as a new measure with DAX calculation like below:

MTD = TOTALMTD( [Net Promoter Score], 'Date Dimension'[Date])
 
These are MTD value for 5 Categories as below . I need to find the Total by summing up the 20% of each category value for respective months.
When I am trying to multiply the MTD value for each category into 0.20 and summing up using DAX, it was showing wrong data.May be my DAX is not correct.
Kindly help me with the DAX calculation to find the total for each month.
 
Thanks In Advance,
Tanu
 
 DecemberJanuaryFebruary
Total26.7227.4226.30
   A44.6541.8740.26
   B53.8056.3053.70
   C20.3322.2424.74
   D11.8914.6012.56
   E2.942.080.26
2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Does your data structure look like data in my table?

Then do you add columns in the matrix visual as below?

 

5.png

 

Then expected result:

"the Total by summing up the 20% of each category value for respective months"

should be way1 or way2, or anything else?

way1:

  December January February
   A 44.65*0.2 41.87*0.2 40.26*0.2
   B 53.8*0.2 56.3*0.2 53.7*0.2
   C 20.33*0.2 22.24*0.2 24.74*0.2
   D 11.89*0.2 14.6*0.2 12.56*0.2
   E 2.94*0.2 2.08*0.2 0.26*0.2

 

Or 

way2:

  December January February
   A 44.65 41.87 40.26
   B 53.8 56.3 53.7
   C 20.33 22.24 24.74
   D 11.89 14.6 12.56
   E 2.94 2.08 0.26
total 137.09*0.2 131.51*0.2 133.61*0.2

 

 

Best Regards

Maggie

Anonymous
Not applicable

When trying to calculate like below not getting the Correct value for TOTAL_MTD.

 

TOTA_MTD = CALCULATE(SUM(NPS[MTD]), FILTER(NPS,NPS[Survey Program[Category]]= "A" || NPS[Survey Program[Category]]= "B" || NPS[Survey Program[Category]]= "C" || NPS[Survey Program[Category]]= "D" || NPS[Survey Program[Category]]= "E"))

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.