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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JoeCrozier
Helper II
Helper II

Best visual for longitudinal repeating instruments data

Hello, first time asking a question so please be patient with me.

 

I have data like this: 

protocol_titleredcap_event_nameredcap_survey_identifiershort_titleprincipal_investigatorfilepath_for_protocolis_imaging_manual_includedfilepath_for_imaging_manuanumber_of_patients_expecteapproximate_length_of_theapproximate_number_of_partname_of_research_coordinatemail_address_of_researchany_other_special_instructmethod_of_imageis_this_the_most_recent_veprotocol_information_completecollaboration_survey_timestampis_this_study_feasibleplease_advisecollaboration_survey_complete
protocol test 1protocol_informati_arm_1test 1joewww.google.com1www.cnn.com1005 years20Joe BobJoeBob@mail.comnothing special212    
protocol test 1survey_1_arm_1              ########1Looks good to me2
protocol test 1survey_2_arm_1               0I personally hate it2
protocol test 1survey_3_arm_1               1What is this? 1998?  Email it to me2
Study2protocol_informati_arm_1Second studyAli Cwww.life.org0 2255 years40Bob RossBob@gmail.comnope112    
Study2survey_1_arm_1               0I want a disc instead2
Study2survey_2_arm_1               1Love it2

 

Where most of the rows are mostly blank.  What I'd like to do is create a visual somewhat like this:

JoeCrozier_1-1656427533192.png

 

Where the top visual (whether its a table/matrix/etc) has information from the first row for each respective "protocol_title".  The visual on the bottom right would have the information from the 'other' rows for each protocol_title.   I.e. if I clicked on the top visual to select 'study2', all of the other rows for study 2 would show up in the other visual.

 

To be honest the way I have it set up now (top visual is matrix , bottom visual table) is kind of doing that, but I dont understand why its adding the prefix "first" to everything, and its also adding a whole bunch of useless columns:

JoeCrozier_2-1656427702028.png

 

I had though I could filter the top visual to "redcap_event_name"="protocol_information" and that may help?  Any other suggestions are appreciated.

 

 

1 ACCEPTED SOLUTION

Hi @JoeCrozier ,

 

Please add Index column for each group in Power Query Editor.

Create Row Number for Each Group in Power BI using Power Query  

 

Then select the rows with index = 0 for the first table.

 

vkkfmsft_0-1656644381274.png

 

And select the rows with index <> 0 for the second table.

 

vkkfmsft_1-1656644418228.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

2 REPLIES 2
JoeCrozier
Helper II
Helper II

Update:  I've tried putting a filter on the top visual, to filter specifically to protocol_information, but because the other visual is linked to it, if that top visual is filtered, nothing will show up in the bottom.  I also understand why its saying "First" and can change that, but its still not the best visual for it.

 

I've thought one way to do it might be to "split" the raw data into two tables (one with basic info from the top visual and another with comments from the bottom visual) and then merge them back together on protocol title.  Any thoughts are appreciated.

Hi @JoeCrozier ,

 

Please add Index column for each group in Power Query Editor.

Create Row Number for Each Group in Power BI using Power Query  

 

Then select the rows with index = 0 for the first table.

 

vkkfmsft_0-1656644381274.png

 

And select the rows with index <> 0 for the second table.

 

vkkfmsft_1-1656644418228.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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