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
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
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.