Skip to main content
cancel
Showing results for 
Search instead 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

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
Europe Fabric Conference

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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