- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Current Year Sales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-09-2019 04:30 AM
Solved! Go to Solution.
Accepted Solutions
Re: Current Year Sales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-24-2019 01:45 AM
Hi @regasanyoto,
Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?
Regards,
Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
All Replies
Re: Current Year Sales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-09-2019 05:09 AM
hi @regasanyoto
Can you please elaborate a little more what you are trying to acheive. As per your post above, the measure is correct and shows the current year sales only.
So what is the probelm?
Thanks & Regards
Affan
Re: Current Year Sales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-09-2019 05:36 AM
Hi @affan,
The measure is correct indeed. but the when i display this on a table
The result is now
date
Re: Current Year Sales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-09-2019 05:39 AM
Year Sales
2016 560.000
2017 560.000
2018 560.000
2019 560.000
I expect the following table result
Year Sales
2016 0
2017 0
2018 0
2019 560.000
So how can i get this result based on my current measure of Current Year Sales
Re: Current Year Sales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-09-2019 06:51 AM
Hi @regasanyoto,
You can create a calculate column in 'Dim Calender Sales Invoice' :
IsCurrentYear = VAR TodayDate = TODAY () VAR CurrentYear = YEAR ( TodayDate ) RETURN 'Dim Calender Sales Invoice'[FullDateAlternateKey] >= DATE ( CurrentYear, 01, 01 )
Then the following measure:
Current Year Sales = VAR Temp = CALCULATE ( SUM ( 'Sales invoice line'[Line amount MST] ), 'Dim Calender Sales Invoice'[IsCurrentYear] = TRUE () ) RETURN IF ( Temp = BLANK (), 0, Temp )
Best Regards
Chiara
Re: Current Year Sales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-09-2019 11:03 PM
Hi @regasanyoto,
Based on my test, this measure could work on my side:
Could you please offer your data to have a test? Also you could download my pbix file to have a view.
Regards,
Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Re: Current Year Sales
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-24-2019 01:45 AM
Hi @regasanyoto,
Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?
Regards,
Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.