Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Solved! Go to Solution.
Hi @Anonymous,
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
Hi @Anonymous,
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
Hi @Anonymous,
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
hi @Anonymous
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
Hi @affan,
The measure is correct indeed. but the when i display this on a table
The result is now
date
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
Hi @Anonymous,
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |