Forum Discussion

Georgephilip's avatar
Georgephilip
New Member
3 years ago

DAX Help

I am new to Power BI, struggling with "Measure" - need help in calculating overall satisfaction % which is a sum of rating 4&5 only. Can someone guide/help please?

 

Also, is there any reference guide to create DAX measures for newbies like me.

 

Thanks,

George 

 

1 Reply

  • Hi,

    I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

    Please check the below picture and the attached pbix file.

    I hope the below can provide some ideas on how to create a solution for your datamodel.

     

    Satisfaction count: = 
    COUNTROWS ( FILTER ( VALUES ( Data[Customer] ), [Rating:] >= 4 ) )
    

     

    Satisfaction ratio: =
    DIVIDE ( [Satisfaction count:], COUNTROWS ( DISTINCT ( Data[Customer] ) ) )