
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Expression for Unit Price * Qty
HI All,
Need help about how to create expression unit price * qty ? the formula should be calculate for each row.
So when I sum total sales will be correct not (sum of unit price).
Please advice.
Thanks
Henry
- Tags:
- expression
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Honestly I do not understand the problem, use a straight table (use a dimension) and add the following expression:
Sum([UNit Price] * qty)
Why doesn't it work?
Let me know


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Honestly I do not understand the problem, use a straight table (use a dimension) and add the following expression:
Sum([UNit Price] * qty)
Why doesn't it work?
Let me know


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post an example of your data?
sum([unit price] * qty) will work provided each data row has both unit price & qty values
otherwise try sum([unit price]) * sum(qty)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
only([unit price]) * only(qty)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes it worked, my bad wrong exp that I used
Thanks anyway.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi ,
sum([unit price] * qty) (or) only([unit price]) * only(qty) both are correct answers Because it works on row bases ...but sum([unit price]) * sum(qty) gives different answer ....summation done on individual field (i.e Column wise )
