Forum Discussion

abelrmg's avatar
abelrmg
Helper II
6 years ago

MATRIX WITH INDEPENDET VALUES

Hi,

 

I have a Matrix, ass seen below

The parameters are:

 

The all values except  LineSumOc only I want them to appear once, I hide the columns and only show the total for this values, but I think is not the better way, is there any other way?

 

In the past I tied to do only with DAX using direct Values, without Columns parameter, but when I tried used  drill through function didn´t work, the filter dont pass.

 

Regards,

 

 

6 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Tough to say. Sometimes moving things to rows and turning off stepped layout helps. Kind of hard to tell what is going on here exactly. 

    • abelrmg's avatar
      abelrmg
      Helper II

      Hello Greg_Deckler ,

       

      Thank you for your advice, I try and improve, but I feel it is very rigid. I would expect to see a graph where you could say measure X applies only to column A and measure Y applies only to column B and not everything should stand up to the same hierarchy.

       

      Regards,

       

      Abel Camacho

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        abelrmg - Now that I am thinking about this, here is another method that I came up with to I think do what you want to do essentially, It is a little involved to make it work but it esseentially allows you to define exactly how you want your hiearchy to be, so essentially do what you are saying, assign a measure to specific columns. Let me know if it works for you. This is the 2nd or 3rd time I have shared this out since creating it. If you also find it useful, I may have to post it to the gallery.

  • v-kelly-msft's avatar
    v-kelly-msft
    Community Support

    Hi abelrmg ,

     

    Just now,I used matrix with measure,and drill through funtion works fine here,as you will see below:

    Here is the reference for Drillthrough.

     

    You said "The all values except  LineSumOc only I want them to appear once",what does that mean?

     

    Best Regards,
    Kelly
     
    Did I answer your question? Mark my post as a solution!

     

    • abelrmg's avatar
      abelrmg
      Helper II

      Hello Kelly

       

      One measure is this:

       

      PLReceived = 
      VAR SUMA = CALCULATE([LinesPurchSum], 
      FILTER(PurchaseOrderLinesV2, PurchaseOrderLinesV2[PurchaseOrderLineStatus] = "Received"))
      VAR SUMA1 = CALCULATE( [LinesPurchSum],
      FILTER(PurchaseOrderLinesV2, PurchaseOrderLinesV2[PurchaseOrderLineStatus] = "Invoiced"
      ))
      VAR RES = IF(SUMA + SUMA1 = BLANK(),0,SUMA + SUMA1)
      RETURN RES

       

       And when you use Drilltrough the values shown are all those of the rows and not only those considered in the measure, for example I have 3 status Received, Invoiced y Draft,

       

      DraftReceivedInvoiced
      245

       

      I would expect to see only 9 but 11 records are shown.

      ----

      I mean that the LineSumOC measure, if I want them to be dependent on the value that the column parameter places. But the other measures can be independent and are not part of the hierarchy of the column parameter

       

      Regards,

      Abel Camacho

      • v-kelly-msft's avatar
        v-kelly-msft
        Community Support

        Hi abelrmg ,

         

        Can you show me some sample data?Hard to analzye the reason without data...

         

        Better with your expected output and the actual output.

         

        Best Regards,
        Kelly
         
        Did I answer your question? Mark my post as a solution!