Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
70 | |
68 | |
50 | |
32 |
User | Count |
---|---|
115 | |
100 | |
73 | |
65 | |
40 |