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
alevandenes
Helper IV
Helper IV

calculated column based on column content

Hi, 

 

could you help me come up with a calculated column that shows "Failed VOE", when the next phase after Verification of Effectiveness/Verification of Effectiveness approval is Initial response? the Phase_tick_id are giving the correct order of the phases.

 

alevandenes_0-1707828574764.png

Thanks a lot!! forever grateful to whom can help me

Kind regards,

Alessandra

1 ACCEPTED SOLUTION

@alevandenes 

modify to this : 

cc = 

if( 

(tbl[PHASE NAME] = "Verification of Effectiveness" || tbl[PHASE NAME] = "Verification of Effectiveness approval") && 

selectcolumns(
offset ( 1 , 
summarize ( tbl , tbl[PHASE NAME] , tbl[PHASE TICK_ID-1]) , 
orderby( tbl[PHASE TICK_ID-1] , asc ) ,
PARTITIONBY(tbl[INTERNAL_AUDIT_RESPONSE_NUMBER])
),
"@PHASE NAME" , tbl[PHASE NAME]

) = "Initial response" , "Failed VOE" ) 





 

let me know if this helps /

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

View solution in original post

4 REPLIES 4
Daniel29195
Super User
Super User

@alevandenes 

Daniel29195_0-1707864304554.png

 

write the following calculated column : 

 

cc = 

if( 

(tbl[PHASE NAME] = "Verification of Effectiveness" || tbl[PHASE NAME] = "Verification of Effectiveness approval") && 

selectcolumns(
offset ( 1 , 
summarize ( tbl , tbl[PHASE NAME] , tbl[PHASE TICK_ID-1]) , 
orderby( tbl[PHASE TICK_ID-1] , asc ) 
),
"@PHASE NAME" , tbl[PHASE NAME]

) = "Initial response" , "Failed VOE" ) 





 

 

 

let me know if that works for you .

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

I might need your help a bit more. this is working, but i also need the condition that the AR number needs to be the same. in my screenshot you see that there is a column with a Audit response number. could you help me integrate it in the formula? Again, thanks A LOT for your help.

@alevandenes 

modify to this : 

cc = 

if( 

(tbl[PHASE NAME] = "Verification of Effectiveness" || tbl[PHASE NAME] = "Verification of Effectiveness approval") && 

selectcolumns(
offset ( 1 , 
summarize ( tbl , tbl[PHASE NAME] , tbl[PHASE TICK_ID-1]) , 
orderby( tbl[PHASE TICK_ID-1] , asc ) ,
PARTITIONBY(tbl[INTERNAL_AUDIT_RESPONSE_NUMBER])
),
"@PHASE NAME" , tbl[PHASE NAME]

) = "Initial response" , "Failed VOE" ) 





 

let me know if this helps /

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

i have added Phase Name to the summarize table as well. with that it works perfectly!! amazing, thank you!!

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.