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 August 31st. Request your voucher.
Hello. I have a Line chart, showing pageviews over time.
I want to add a second line, comparing the date period chosen to the previous period.
Is there an easy way to do this?
Solved! Go to Solution.
@Unicorn_Tech you need to set relationship between date table and your original table and then you can use parallelperiod function as described in the link.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Unicorn_Tech As a best practice, add date dimension in your model and use it for and time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools.
https://perytus.com/2020/05/22/create-a-basic-date-table-in-your-data-model-for-time-intelligence-ca...
Once you have date dimension in your model, you can use previousday, previousmonth, previousyear, all these time intelligence functions in your measure
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@parry2k, that sounds like what I need exactly, but I might need a bit more of an explanation here. I have a single table, that has dates, and pageviews. I take it you aren't suggesting an additional column, and I did build a seperate table of Dates, per the link you hd put in.
Currently, the date table I created and my original table are unrelated. How does the Timeline dax fit into this now?
I think the timeline feature I'm most interested in is PARALLELPERIOD
Hi @Unicorn_Tech ,
When we use time intelligence function. It always need a complete, uninterrupted calendar table. You need create a date table and create relationship between it and original.
Here is two link that many help you learn more about it:
https://softcrylic.com/blogs/power-bi-for-beginners-how-to-create-a-date-table-in-power-bi/
https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
@v-deddai1-msft @parry2k , I really appreciate your help here.
I have my seperate date table. I have marked it as a date table. I have set up a relationshipt between the Date table (Date) to my data table with page views (Date.)
I don't understand how now to calculate a parallel period. Is this done in a table, an extra column? Is this done in the reporting view?
My visual is a line chart that shows page views for the past 30 days. I am now using the field of date from the date table, and the page views column from the data table.
How can I now show a seperate line, with the parallel period.
I appreciate the help - I am learning!
Hello. Based on internet links, this is what I tried to do, inside my date table:
@Unicorn_Tech you need to set relationship between date table and your original table and then you can use parallelperiod function as described in the link.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.