Forum Discussion
Anonymous
4 years agoNot applicable
Urgent help- Dax
Hey, Hope all of you are good. Please find below data, remark reportdate lob geography assetclass sublob Value(int) lob 13-Dec-21 Markets 1 lgas 13-Dec-21 Markets...
- 4 years ago
Hi, Anonymous
Try to create a measure like this:Measure = var _t1=CALCULATE(SUM('Table'[Value(int)]),'Table'[sublob]=BLANK()) var _t2=CALCULATE(SUM('Table'[Value(int)]),'Table'[sublob]=BLANK()&&'Table'[assetclass]=BLANK()) var _t3=CALCULATE(SUM('Table'[Value(int)]),'Table'[sublob]=BLANK()&&'Table'[assetclass]=BLANK()&&'Table'[geography]=BLANK()) var _t4=0 //whatever you want // CALCULATE(SUM('Table'[Value(int)]),'Table'[sublob]=BLANK()&&'Table'[assetclass]=BLANK()&&'Table'[geography]=BLANK()&&'Table'[lob]=BLANK()) var _if=IF( ISINSCOPE( 'Table'[lob] ), IF( ISINSCOPE( 'Table'[geography] ), IF( ISINSCOPE( 'Table'[assetclass] ), IF( ISINSCOPE( 'Table'[sublob] ), SUM('Table'[Value(int)])// 0 , _t1// 1 ), _t2// 2 ), _t3// 3 ), _t4// 4 ) return _if
Result:Please refer to the attachment below for details. Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
4 years agoAnonymous , Based on what I got
There are few solutions discussed on this issue, see if those can help