Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I need help with the calculations with the YTD calculations, and Month values.
My table is called TBL_Indicator and the structure is the following
My issue with the YTD is that it need to be filter by a column named Filter (mmm/YYYY - Jan/2020), and my month values should be the Divide(sum[value],Sum[Total]) based also on the filter column.
I have created also a Calendar table using the following structure.
Solved! Go to Solution.
@Anonymous , I suggested a new measure. You are trying a column. Try a column like
sumx(filter(Table, [country] =earlier([country]) && [product] =earlier([product]) && [indicator] =earlier([indicator]) && [month_num] <=earlier([month_num])
&& [year] =earlier([year]) ),[value])
@Anonymous , I suggested a new measure. You are trying a column. Try a column like
sumx(filter(Table, [country] =earlier([country]) && [product] =earlier([product]) && [indicator] =earlier([indicator]) && [month_num] <=earlier([month_num])
&& [year] =earlier([year]) ),[value])
@Anonymous , Not very clear. You need to have column like this which you can use as slicer
month year = FORMAT (DATES[Date],"mmm/YYYY")
ytd should be like
YTD Sales = CALCULATE(Divide(sum[value],Sum[Total]),DATESYTD('Date'[Date],"12/31"))
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
@amitchandak, thank you for your reply.
what i need is this.
YTD of Values in Mar is the sum of 4542+1187+5021 (Jan+Feb+Mar) and so on
this also applies to YTD of Total.
is this clear?
Once more thank you for your help
@Anonymous , This should work with a measure like this, with help from the date table
YTD values= CALCULATE(sum[value]),DATESYTD('Date'[Date],"12/31"))
@amitchandak, thank you the output using your table give me the same value.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
43 | |
21 | |
20 | |
15 | |
13 |
User | Count |
---|---|
45 | |
41 | |
39 | |
19 | |
19 |