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
VK7
Frequent Visitor

How to get row total when field parameters used

I've created table with Name, Roll & Field parameter (English,Maths, Science). I need to calculate Percentage column by 
adding the subjects (English+Maths+Science) Divided by no. of field parameter selceted.
For Instance,
in below scenario it should be (English + Maths + Science) Divided by 3

VK7_5-1662795841786.png

whereas, in below scenario it should be (English + Maths) Divided by 2

VK7_4-1662795799121.png

Below image from Power bi.

VK7_6-1662796778050.png

@Rickmaurinus  

@GuyInACube 

@Curbal

1 ACCEPTED SOLUTION
davehus
Memorable Member
Memorable Member

Hi @VK7 ,

 

The easiest thing to do is normalize your data by unpivoting it into a table. Please see attached example.

 

Hope this helps.

 

Did I help you today? Please accept my solution and hit the Kudos button.

View solution in original post

1 REPLY 1
davehus
Memorable Member
Memorable Member

Hi @VK7 ,

 

The easiest thing to do is normalize your data by unpivoting it into a table. Please see attached example.

 

Hope this helps.

 

Did I help you today? Please accept my solution and hit the Kudos button.

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.