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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.