Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Display rows only equal to a specific sum amount

Hi All,

 

I'm attempting to create a visual that will display material numbers only when the sum value of accounting transactions is equal to 0, representing the fact that debits and credits for that material are equal.  This can be easily accomplished by filtering on the sum of currency on a visual, but the issue that presents is the user wants to be able to click on any given row (including the total row) of the table to see what accounting documents are included in the sum value of 0.  If I simply use a filter on a visual the total column of the visual will still return entries not equal to 0.

 

My data looks as below:

MaterialDoc CurrencyAccounting Document
1A110100000001
1A1-10100000002
2A2-20100000003
3A3-15100000004
3A320100000005
4A450100000006
4A4-50100000007

 

What I'd like would be one visual displaying all materials where sum of doc currency = 0

 

MaterialSum of Doc Currency
1A10
4A40
Total0

 

which you could then click on any row to filter a second visual of just the accounting documents that make up that row, including the total row.

 

I believe what needs to be done is build a visual that filters out rows where sum of currency isn't equal to 0 ahead of time.  Any thoughts on this?

8 Replies

  • camargos88's avatar
    camargos88
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous ,

     

    Create this measure Filter_0 and filter the visual when the value is 0, like: 

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thats how I currently have it structured, the only issue being the user wants the ability to click on any row of the table to have another visual display the associated accounting doc.  If a filter is applied as you specified when clicking on the total row of "0" all documents are returned even if the sum total is not 0.

      • camargos88's avatar
        camargos88
        Icon for Community Champion rankCommunity Champion

        Anonymous ,

         

        So you can apply this filter for the entire page. Does that work ?