cancel
Showing results for 
Search instead for 
Did you mean: 
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
Super User
Super User

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
Super User
Super User

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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors