Forum Discussion

ChahindaAlyy's avatar
ChahindaAlyy
Microsoft Employee
2 years ago
Solved

Power bi - Count values once

hellos experts,

i have a powerbi destop connected to a flatsheet (offline sheet).

there are columns with values, and the values are repeated because there is a different measure that shows different cateory
example

solution name 1 = 1M

solution name 2= 1M

solution name 3 = 1M

i want to count the 1M once. is there a way?

 

thanks

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi ChahindaAlyy ,

      Thank you for your question. I don't have a clear idea of what you're trying to accomplish. But I wrote a dax the way I understand it.

    create  a measure:

    Unique 1M =
    
    CALCULATE (
    
        DISTINCTCOUNT ( 'TableName'[Solution Name] ),
    
        'TableName'[Solution Name] = "1M"
    
    )
    
    

     

    How to Get Your Question Answered Quickly - Microsoft Fabric Community

    If  i have misunderstood your meaning,  please provide more details with your desired out put and pbix file without privacy information.

     

    Best Regards,

    Yifan Wang

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

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ChahindaAlyy ,

      Thank you for your question. I don't have a clear idea of what you're trying to accomplish. But I wrote a dax the way I understand it.

    create  a measure:

    Unique 1M =
    
    CALCULATE (
    
        DISTINCTCOUNT ( 'TableName'[Solution Name] ),
    
        'TableName'[Solution Name] = "1M"
    
    )
    
    

     

    How to Get Your Question Answered Quickly - Microsoft Fabric Community

    If  i have misunderstood your meaning,  please provide more details with your desired out put and pbix file without privacy information.

     

    Best Regards,

    Yifan Wang

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