Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi team,
I need to create a calculate column, to check wheather it is parent or not based on "Sno =0"
if sno =0 with respective Parent Id then "Yes" else "No"
Thanks in Advance,
Solved! Go to Solution.
You can try this column expression.
HasParent =
IF (
CALCULATE (
COUNTROWS ( Table ),
ALLEXCEPT ( Table, Table[ParentID] ),
Table[Sno] = 0
) > 0,
"Yes",
"No"
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You can try this column expression.
HasParent =
IF (
CALCULATE (
COUNTROWS ( Table ),
ALLEXCEPT ( Table, Table[ParentID] ),
Table[Sno] = 0
) > 0,
"Yes",
"No"
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@Anonymous Column = IF([Sno]=0,"Yes","No") ?
NO.
1.Consider with Parent ID , Sno =0, then it is parent.
2. If Sno<>0 then it is not parent.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.