The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
We look at trended trailing twelve month period ("TTM") frequently due to seasonality in our business. I am thinking about switching my team from cognos to Power BI and am in the process of exploring Power BI's capabilities. One major issue with Power BI is the creation of trended TTM periods (ex. TTM ended Oct 2015, TTM ended Oct 2014, TTM ended Oct 2013, etc). This requires the use of a user-prompt to determine which month the TTM periods will end on. However, it doesn't look like there is such a thing as user prompts / parameters in Power BI (we would be using Power BI desktop to author and then push the visuals to Power BI cloud for remote users to use).
Since there is not built-in TTM function / filter, I could add a column to the query that flags which TTM period each record falls in IF the query can be told when the TTM period ends. How do I do this? (have the user select which month the TTM period falls under and then pass that month to the query to calculate which TTM period each record falls under)?
Any help is appreciated as Power BI looks like a great tool but this would if I can't generate trended TTM periods then I probably won't be able to switch my team to it.
Thanks!
You might look at PREVIOUSYEAR function:
Or PARALLELPERIOD:
Or perhaps a Time Pattern here:
http://www.daxpatterns.com/time-patterns/