Forum Discussion

jerryr125's avatar
jerryr125
Helper IV
2 years ago
Solved

Display text instead of the sum

Hi  - 

I have a table visualization.

 

Example:

DepartmentCounter Sales
123425
56780
910110
1213100

 

instead of displaying the 'sum of sales', I would like to display "Yes" or "No".  That is, if the counter of the field sales is greater than 0, then display "Yes" else display "No"

 

Example:

Example:

DepartmentCounter Sales
1234Yes
5678No
91011No
1213Yes

 

Any thoughts ? Jerry

  • Hi

     

    Use the following DAX formula to create the measure:

    Sales Status Measure = IF(SUM('Sales'[Counter Sales]) > 0, "Yes", "No")

    Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

1 Reply

  • Hi

     

    Use the following DAX formula to create the measure:

    Sales Status Measure = IF(SUM('Sales'[Counter Sales]) > 0, "Yes", "No")

    Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!