The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Solved! Go to Solution.
@Anonymous
If you add a calendar table/date table in the data model and relate it to with the sales table, then the following formula will work
CALCULATE(SUM(TableName[Sales]), dtCalendar[Year] = 2017)
https://www.vivran.in/post/power-bi-time-intelligence-calendar-table
Cheers!
Vivek
If it helps, please mark it as a solution. Kudos would be a cherry on the top 🙂
If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)
Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter
@Anonymous , TRy like
calculate(sum(sales[Amount]), filter(Sales, year(Sales[Date]) = 2017))
or with date table
calculate(sum(sales[Amount]), filter(Date, year(Date[Date]) = 2017))
@Anonymous
If you add a calendar table/date table in the data model and relate it to with the sales table, then the following formula will work
CALCULATE(SUM(TableName[Sales]), dtCalendar[Year] = 2017)
https://www.vivran.in/post/power-bi-time-intelligence-calendar-table
Cheers!
Vivek
If it helps, please mark it as a solution. Kudos would be a cherry on the top 🙂
If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)
Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter
Thank you for your help
User | Count |
---|---|
70 | |
64 | |
62 | |
48 | |
28 |
User | Count |
---|---|
113 | |
80 | |
64 | |
55 | |
43 |