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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Soupy127
Regular Visitor

Forms - PowerBI Help - Combine multiple rows based on 1 field and merge results

Hi All,

Hope you are well :)!

I have been tasked with creating a Microsoft Form which can be used as a checklist for checking progress of a construction project.

So it will consists of 2 text fields and a list of 50 questions (which default to No), the 2 text fields (might make them a dropdown list), will be the floor and appartment number.

 

It will then Display a list of trades and then will filter on this to show the relevent questions i.e. a painter will see only his questions. 

The idea is that I can combine all of the different form results for a single appartment into 1 row so we can see the progress of that appartment.

I.E. on the excel spreadsheet generated by the form it will look something like the below were each appartment will have multiple rows:

Soupy127_0-1744124033086.png

Wondering if there is a way on PowerBI that I could combine the results to 1 row per Room which then combines all of the results from the questions (with 'Yes' taking precedence).

 

With the final idea being that I end up with something like this (with the Yes answers being green)

Soupy127_1-1744124265729.png

 

Sorry for the long post.

 

 

 

 

 

 

 

 

2 ACCEPTED SOLUTIONS

Hi @Soupy127 ,

 

Please see the file attach. What I have done:

  • Unpivot the questions and answers

MFelix_0-1744213477112.png

 

  • I assume that you have the date of the form also
  • Add the following measure:
Last values = 
var temptable = TOPN(1, 'Table', 'Table'[Date], DESC)
Return
MAXX(temptable, 'Table'[Answer])

Final result:

MFelix_1-1744213530522.png

 

The bottom table is the one with the full questions and dates the top one is the one with only the last results.

 

Please let me know if you need further assistance


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

OK,

 

Sorry I missunderstood tough you wanted the last response.

 

Just try this measure since in Yes is always after No (Alphabetically)

Last values = 
MAX('Table'[Answer])

 

And if you want some additional information on top of this you can have this additiona formula:

MFelix_0-1744220742219.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

10 REPLIES 10
v-sdhruv
Community Support
Community Support

Hi @Soupy127 ,
Just wanted to check if you had the opportunity to review the information provided by @MFelix .
If his response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

MFelix
Super User
Super User

Hi @Soupy127 ,

 

Have you tried keeping the Forms value has you have but pickup the lastnonblankvalue for each of the questions? That would give you the correponding value based on the latest form for all the questions.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi MFelix,

 

In that case, on the form would you remove the default value for each of the questions (so they are blank) and then do as you say above and it would only show the 'Yes' answers?


If so could you show me an example of were to put the 'lastnoblankvalue' as have never used it before 🙂

 

Thanks again

No need to have the blanks, 

 

I will setup an example and send it tomorrow


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Brill Miguel, thanks very much for your help! 

Hi @Soupy127 ,

 

Please see the file attach. What I have done:

  • Unpivot the questions and answers

MFelix_0-1744213477112.png

 

  • I assume that you have the date of the form also
  • Add the following measure:
Last values = 
var temptable = TOPN(1, 'Table', 'Table'[Date], DESC)
Return
MAXX(temptable, 'Table'[Answer])

Final result:

MFelix_1-1744213530522.png

 

The bottom table is the one with the full questions and dates the top one is the one with only the last results.

 

Please let me know if you need further assistance


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Brilliant Miquel, that makes since. I will test this afternoon and let you know if works :).

Thanks very much again for your help! 

Thanks Miguel again for your help.

 

But I dont think the solution above will work, i.e. in your example Q2 was marked yes by by ID 1 but in the final results it shows as a "No".

 

What im looking to achieve is: 

1. Painter comes along and ticks Yes to all of his relevent questions (lets say 1-5), he will not be presented with 6-10 as they are not relevent to him, so on the results line it will show 1-5 with a Yes and 6-10 as a No. (as No is the default value).

2. Tiler then comes along and he is presented with questions 6-10 and he Marks them as Yes and he is not presented with 1-5 - so on his Forms result it will show No for 1-5 and a yes from 6-10.

 

So need for Yes to take precedent over all of the Nos' (hoping this makes since). So in other words if there is a Yes in the Question column for that Room it will show a Yes (not just based of last answer).

 

Hoping this makes since, there may be a better way to do this that I havent thought off.

 

Soupy127_0-1744215506576.png

I.e. in the above example the row for that Room should all be Yes's as there are Yes's in each of the columns.

 

 

 

OK,

 

Sorry I missunderstood tough you wanted the last response.

 

Just try this measure since in Yes is always after No (Alphabetically)

Last values = 
MAX('Table'[Answer])

 

And if you want some additional information on top of this you can have this additiona formula:

MFelix_0-1744220742219.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Miguel, you are an absolute Legend.

That worked exactly as expected, thanks very much again for your help! 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors