I have a table visualization with a Product on the ROWS, an Amt measure, and a SalesDate on COLUMNS. I would like some Products to display with decimals and some with no decimals. Is there a way to achieve this with a calculated measure, something like:
if ($Product$) == “Chairs”
{ return $Amt$, formatted with 2 decimals;}
else
{ return $Amt$;}
or any other way to get the desired end result?
Product January 2019 February 2019 March 2019
Bikes $200 $250 $300
Campers $1000 $2000 $1500
Chairs $10.50 $20.80 $9.99