Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Formula

Hello Team,

 

I need your help with a formula. I need to calculate the number of covers per Ticket. The database shows the data as per below:

TicketCover
128711
128742
128742
128724
128724
128724
128724
128761
128711
128724

 

My final result should be like the below:

TicketCover
128711
128724
128742
128761
Total8

 

Is there a way I can do it?

 

Thank you.

  • Hi,

    Please check the below picture and the attached pbix file.

     

     

     

    Cover measure: =
    SUMX ( DISTINCT ( Data[Ticket] ), CALCULATE ( DISTINCT ( Data[Cover] ) ) )
    

2 Replies

  • Hi,

    Please check the below picture and the attached pbix file.

     

     

     

    Cover measure: =
    SUMX ( DISTINCT ( Data[Ticket] ), CALCULATE ( DISTINCT ( Data[Cover] ) ) )
    
    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Jihwan,

       

      It works, thank you.

       

      Kind Regards