Forum Discussion

ErickReris's avatar
ErickReris
Frequent Visitor
2 years ago
Solved

Same protocol but multiple rows

Hi guys, i may need your help with one question.   I have a table called Protocols that allow me to see the number of the protocol, the value in $ and the itens.   And for each protocol, i have t...
  • MFelix's avatar
    2 years ago

    Hi ErickReris ,

     

    In this case you can go with different approachs but without making model changes the option is to create some measures for this they should be similar to this:

     

    Total Nota Final = SUMX(SUMMARIZE(Table, Table[Nro. Protoolo], Table[Valor Total Nota Fi]),Table[Valor Total Nota Fi])

     

    Since the values for the Protocol is always the same this will give you a table with a line value for each protocol and without repeating the value several times.

     

    Now you can use this metric on your visualization and calculations.

     

    If you are looking for an average value you should use AVERAGEX instead of SUMX. For the number of protocols you just need to use a DISTINCTCOUNT for example.