Forum Discussion
Urgent help- Dax
- 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.
Hi Anonymous ,
To achive this, you can follow below steps:-
1. Right click on lob column and select create a hierarchy:-
2. Now you will see new hierarchy created
3. Now right click on geograph column and click on add to hierarchy and add it lob hierarchy:-
4.Follow the same step for asset class and sub lob. You will see below output
5. Now add this hierachy into the matrix and put filter for non blank value in assetclass and sublob column
Thanks,
Samarth
- Anonymous4 years agoNot applicable
Thanks, For your valuable time. Actually if you see my desire output . I required value as it is in total. In your solution I got value of category as subtotal(sum). Which is not correct solution. Kindly help. Not getting desired output from 5 day. Samarth_18 and amitchandak .