cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.

Tanu

 December January February Total 26.72 27.42 26.30 A 44.65 41.87 40.26 B 53.80 56.30 53.70 C 20.33 22.24 24.74 D 11.89 14.60 12.56 E 2.94 2.08 0.26
2 REPLIES 2
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?

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"))

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors