
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To show the latest Month expression
Hi, i have a table to show the net sales.
the table include of field name, transactionmonth1, net sales.
What is the expression in the straight table i can set to show the net sales always show in current month (Latest Month).
eg: now is August, the net sales showing is aug sales. next month is sept, net sales show is september.
Please advise.
- « Previous Replies
-
- 1
- 2
- Next Replies »


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Write the transactionmonth1 dimension like below
if(transactionmonth1= Date(max(Date#(transactionmonth1,'MMM')),'MMM'),transactionmonth1)
Then Check on the suppress when value is null.
I am assuming the transactionmonth1 value formats are Jan,Feb, Mar etc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try,
sum({<transactionmonth1 = {"$(=max(transactionmonth1))"}>} [Net Sales])
.png)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Prabu
Check the attached qvf

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can i have it in qvw file?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi it Did not work


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Prabu,
Check if transactionmonth1 is a numeric field or text field.
If it is a numeric field, shraddha.g solution should work.
Drag a filter panel out and insert transactionmonth1 into the filter panel.
Then check if the months in transactionmonth1 is left-aligned or right-aligned.
Thanks and regards,
Arthur Fong


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As Arvind Suggested,
Use the dimension as
=Month(Today())
and expression
=sum({<transactionmonth1 ={$(=Month(Today()))}>}[net sales])

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be this:
=sum({$<transactionmonth1 = {"=$(=Month(Today()))"}>}NetSales)
Or
=SUM({$<transactionmonth1={'$(=max(vCurrMonth))'}>}NetSales)
LET vCurrMonth = month(transactionmonth1);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
is a numeric field

- « Previous Replies
-
- 1
- 2
- Next Replies »