Forum Discussion
How to display calculated measure using year in Table?
I am facing a problem to show calculated values on yearly bases.
Result as below:
Now i want to show the table based on year instead of date. then I changed the date to display only Year.
The result is the below figure:
The two calculate measures displayed when it is date but not displaying when it is YEAR only.
how can show the value of the calculate measure in the second figure.
regards.
3 Replies
- AnonymousNot applicable
Hi IloveTigray ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create measures.
totalSupport LY = CALCULATE(SUM('Support'[totalCost]),FILTER(ALL('Support'),YEAR('Support'[completionDate])=YEAR(MAX('Support'[completionDate]))-1))supportParallel = SUMX(VALUES('Support'[completionDate].[Year]),[totalSupport LY])(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- amitchandak
Super User
IloveTigray , You need to join the Date of you table with the Date of date table and mark date table as the date table. Use the period from the date table in visual, measure, and slicer
totalSupport TY = CALCULATE(SUM(Support[totalCost]))totalSupport LY = CALCULATE(sum(Support[totalCost]),PREVIOUSYEAR(Date[Date]))supportParallel = CALCULATE(SUM(Support[totalCost]),PARALLELPERIOD(Date[Date],-1,YEAR))Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s - IloveTigrayNew Member
I have only support table with date field completionDate.
Is not it possible to use with a single table with has date field?