Forum Discussion

Oliya's avatar
Oliya
Frequent Visitor
3 years ago
Solved

dax problem

Hi, I am trying to solve a problem through dax. currently there is duplicate data in my table and requirement is not to delete the duplicate records because if the user filters based on country they...
  • v-yueyunzh-msft's avatar
    3 years ago

     Hi, Oliya 

    According to your description, you want to get the total of the [volume] accoding to your logic.

    Here are the steps you can refer to :
    (1)My test data is the same as yours.

    (2)We can create two measures:

    Measure = MAXX('Table','Table'[volume])
    Measure 2 = SUMX(VALUES('Table'[Contract No]) ,[Measure])

    (3)Then we can put the [Measure 2] and the fields on the visual and then we can meet your need:

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly