Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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 MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
78 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
84 | |
48 | |
48 | |
48 |