Forum Discussion
Help with Viewing Totals per week in matrix Table
3 Replies
- AnonymousNot applicable
Hi Anonymous ,
You can create a measure as below to get the week total:
Week total = VAR _selmt = SELECTEDVALUE ( 'Table'[[Material] ) VAR _seldesc = SELECTEDVALUE ( 'Table'[Material Description] ) VAR _seluom = SELECTEDVALUE ( 'Table'[Base UOM] ) VAR _selmrpe = SELECTEDVALUE ( 'Table'[MRP element] ) VAR _selindi = SELECTEDVALUE ( 'Table'[ABC Indicator] ) VAR _selpdate = SELECTEDVALUE ( 'Table'[Planned dates] ) RETURN CALCULATE ( COUNT ( 'Table'[Material] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Material] = _selmt && 'Table'[Material Description] = _seldesc && 'Table'[Base UOM] = _seluom && 'Table'[MRP element] = _selmrpe && 'Table'[ABC Indicator] = _selindi && WEEKNUM ( 'Table'[Planned dates], 1 ) = WEEKNUM ( _selpdate, 1 ) ) )If the above one is not working, please provide some raw data in your table(s) (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
- AnonymousNot applicable
Hi Anonymous ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
- AnonymousNot applicable
Hi,
Didnt really work for me, instead i decided to do a running total of the total materials and as such i could see each day the value went below a 0