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
fstupot
Helper II
Helper II

help with calculation of cells containing certain text

hi guys,

 

really hope you can help xxx

 

i am trying to show a report that shows a list of scores for when certain inspections are carried out.

 

if a question is applicable and it passes, the outcome is 1. if there is a fail it shows as a 0. it the asks to rate hos significant the defect is in the next column (ofi, minor or major)

 

my issue is that i want to show a table that shows what question is a failed, with the type of defect rating it has. because of the the stupid third party software it kiscks the data out in lateral rows as per below and the sinpections have over 80 questions , so i can really use something where i have to type all the columns out in dax.

 

ideally i would like to see what question it has failed on and the type of defect rating that has been typed in the column after. i tried unpivoting columns but it only lets me view what question fail, or the type of defect on a table....not both at the same time.

 

please help and i will love you forever!!x

 

fstupot_0-1677597766406.png

 

2 REPLIES 2
fstupot
Helper II
Helper II

to explain better here is a table showing example data and my desired output x 

inspection carried about byquestion 1defect rating 1question 2defect rating 2question 3defect rating 3    inspection carried out byquestion faildefect rating
dave1 1 1      stevequestion 1major 
steve1 1 1      willquestion 3minor 
steve0major1 0minor     stevequestion 3minor 
ben 1 1 1          
will1 1 0minor         
                

Hi @fstupot ,

 

Please try unpivotting columns. 

Select the first column and click "Unpivot Other Columns".

vstephenmsft_0-1677742787628.png

vstephenmsft_2-1677742879407.png

Filter out 1, 0 and blank and below is the expected result.

vstephenmsft_1-1677742870462.png

vstephenmsft_3-1677742908204.png

 

   

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

 

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Top Solution Authors