Forum Discussion
sekharsahu25
4 years agoRegular Visitor
Need hep
Hi I have to get the individual value of an id where as I am getting sum when I am joining the tables. ID $ Margin 9223 $1,097,939.35 $2,156,176.14 9230 $54,829.31 $1,746,478.98 ...
- Anonymous4 years ago
Hi sekharsahu25 ,
According to your expected output,
- if [Accnt]="Cost of Revenue",then TRUE() and need to get the $ from Table 1 based on each iDept id and
- if [Accnt]="Operating Revenue", then False()
If so, please try:
Duplicate = IF([Accnt]="Cost of Revenue",TRUE(),FALSE())$ = var _look=CONVERT( LOOKUPVALUE('Table 1'[$],[Dept ID],[Dept Id]) ,STRING) return IF( [Accnt]="Cost of Revenue","FALSE", IF( _look=BLANK(),"#N/A",_look))Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - Anonymous4 years ago
Hi sekharsahu25 ,
P;ease try:
Duplicate = var _count=CALCULATE(COUNTROWS('Table 2'),ALLEXCEPT('Table 2','Table 2'[Dept Id])) var _rank=RANKX(FILTER('Table 2',[Dept Id]=EARLIER('Table 2'[Dept Id])),[Accnt],,ASC) return IF(_count>1 && _rank=1,TRUE())Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
sekharsahu25
4 years agoRegular Visitor
Can anyone help on the above problem where I just need only look up value and the remaining should be blank