Forum Discussion
required Delta of data
- Anonymous2 years ago
Hi Sarath5c8 ,
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a measureMEASURE = VAR _ChildCount = CALCULATE ( COUNTROWS ( 'Table' ), ALL ( 'Table'[Parent] ) ) VAR _ParentCount = CALCULATE ( COUNTROWS ( SUMMARIZE ( 'Table', 'Table'[ID], 'Table'[Parent] ) ), ALLEXCEPT ( 'Table', 'Table'[ID] ) ) RETURN IF ( _ParentCount = 1, BLANK (), IF ( _ChildCount <> 1, BLANK (), "" ) )2.Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Sarath5c8 ,
I don't quite understand your question. Is this your desired result?
Can you explain why you get 'C1' and 'C7'? Are you intending to show parent items with the same children under one ID?
- Sarath5c82 years agoFrequent Visitor
Yah that's the desired output because if you see under 1 we have two Parents P1 & P2 which has C2 & C3 common and C1 & C7 present only once hence those need to stand out and will be the result.
if ID has 1 parent we can ignore it straight away.
- Anonymous2 years agoNot applicable
Hi Sarath5c8 ,
The Table data is shown below:
Please follow these steps:
1. Use the following DAX expression to create a measureMEASURE = VAR _ChildCount = CALCULATE ( COUNTROWS ( 'Table' ), ALL ( 'Table'[Parent] ) ) VAR _ParentCount = CALCULATE ( COUNTROWS ( SUMMARIZE ( 'Table', 'Table'[ID], 'Table'[Parent] ) ), ALLEXCEPT ( 'Table', 'Table'[ID] ) ) RETURN IF ( _ParentCount = 1, BLANK (), IF ( _ChildCount <> 1, BLANK (), "" ) )2.Final output
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.