Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Template Report [Solved]

I have a template report which outputs the data to a table. However the cost fields are calculated fields & even if there is a zero value, a 0 is both sent to the Google sheet & to the template. The expression to calculate the cost field is: (ANY(SELECT(BevDB[CostPerUoM],[Ingredient]=[_THISROW].[Ingredient1])))*[Qty1]
I have tried the following IF statement to have the output blank, BUT it still outputs a 0 & not a blank cell. Any help is appreciated. Cheers

SOLVED with this formula thanks to @Steve & @1minManager for helping me out.
ANY(LIST(ANY(SELECT(BevDB[CostPerUoM], ([Ingredient] = [_THISROW].[Ingredient1]))) * [Qty1]) - LIST(0.0))

Solved Solved
1 8 307
1 ACCEPTED SOLUTION

Try:

ANY(LIST(ANY(SELECT(BevDB[CostPerUoM], ([Ingredient] = [_THISROW].[Ingredient1]))) * [Qty1]) - LIST(0.0))

Assuming the result is Price or Decimal.

View solution in original post

8 REPLIES 8
Top Labels in this Space