Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi there,
I have created the below expression to populate a line graph. This works perfectly for the current period.
However, when I try to work out the values for the previous period, using parallel period, it does not seem to work.
I turned this into a table to see more clearly.
Any help would be greatly appreciated.
Thank you.
Melanie
Please share your [Posted Deals 13Months] measure. I suspect that is undoing what you are trying to do with the time intelligence functions.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi there,
@melg , You should use Date table for that
Gross Posted Deals 1YR =
CALCULATE([Gross Deals Posted],
SAMEPERIODLASTYEAR('Date'[Date],
-12,
MONTH)
)
or
Gross Posted Deals 1YR =
CALCULATE([Gross Deals Posted],
SAMEPERIODLASTYEAR('Date'[Date])
)
or
Gross Posted Deals 1YR =
CALCULATE([Gross Deals Posted],
dateadd('Date'[Date],
-12,
MONTH)
)
Why Time Intelligence Fails - Power bi 5 Savior Steps for TI: https://youtu.be/OBf0rjpp5Hw
Hi there, thank you for your response!
I tried both the SAMEPERIODLAST YEAR and DATEADD and it produces the same result, however this time there is only a value populating for October....
I am using ReportingDate from my date table called pavw_Dates.
Thanks.
@melg , Use date table, that is marked as date table, to make time intelligence work.
I also see a role of an independent table here. As you are displaying 12 month , when one month is selected
refer
Why Time Intelligence Fails - Power bi 5 Savior Steps for TI: https://youtu.be/OBf0rjpp5Hw
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
User | Count |
---|---|
99 | |
86 | |
80 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |