Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap
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.
User | Count |
---|---|
91 | |
74 | |
71 | |
58 | |
55 |
User | Count |
---|---|
41 | |
39 | |
34 | |
32 | |
30 |