Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
MPMH
New Member

Create new table and Run SELECTEDVALUE and SWITCH row-wise

Hello

 

I'm making a Power BI report that is reading 3 different excel files from sharepoint, these files are answers to Forms and I need to divide the three excel files in different categories and give scores to each answer and to each category. I create tables for each category and if I have one row the result is ok but if I get a second row in the dataset most of the scores won't appear in the tables that I created for each category. I will give an example.

powerbi.png

And I do the same for Group 2, then I sum both "Group_total" from Table Group 1 and Table Group 2 to get the final score.

 

 

  • When I have more than one answer the table looks like this: 

|Name |Date            |Question_1 |Question_2 |Group_total |

Anna    12-03-2021                    

 

 or like this

 

|Name |Date            |Question_1 |Question_2 |Group_total |

Anna    12-03-2021             0                            0

 

If I wasn't explicit enough or if you need a better example, just say and I'll try to make a better example.

Thanks in advance for your time and help

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi, @MPMH 

Here is the pbix you can refer. The result looks like this:

v-cazheng-msft_0-1615781592888.png

 

 

But I’m not sure whether it is what you need. I feel a little bit confused about this part:

v-cazheng-msft_1-1615781592891.png

 

Best Regards

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
v-cazheng-msft
Community Support
Community Support

Hi, @MPMH 

Here is the pbix you can refer. The result looks like this:

v-cazheng-msft_0-1615781592888.png

 

 

But I’m not sure whether it is what you need. I feel a little bit confused about this part:

v-cazheng-msft_1-1615781592891.png

 

Best Regards

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors