I have this line chart and was asked to mark today's date with a vertical line (same one that appears when the mouse point rolls over). Is it possible to do that? I've created a "today's date" column, but not sure how to make it work.
Solved! Go to Solution.
Sorry for being so dumb, but I can't figure out how you created the Calendar table in the solution you'd sent. The column "Date" in particular. i see from the icon, that it's not a Measure and not a Calculated column, but the table itself has a formula.
@parry2k Sorry! 2 more questions: 1. On your chart Today shows as a column in 'Column values" section. On mine it gives me an option for a Count, Sum, etc. How do I display it as a just "Today".
2. You have "Tooltip" in the "Tooltips" section. How is that done?
@ZiaAnderson Today is a measure, not a column.
Today = VAR __released = MAXX( ALLSELECTED( 'Calendar'[Date] ), [Released] ) VAR __disbursements = MAXX( ALLSELECTED( 'Calendar'[Date] ), [Disbursements] ) RETURN IF( MAX( 'Calendar'[Date] ) = TODAY(), MAX( __released, __disbursements ) ) * 1.05 --multiply with factor to get longer bar
For tooltip, here is the post
If you still need assistance, please reach out to by email (on my signature) and I can walk you thru screen sharing.
Hi @parry2k ,
I hope you are doing well. Thank you for being our mentor.
I'm running into similar situation where I need to create a vertical line showing current date. I followed this conversation and managed to create the vertical line.
However, the two lines generated using measures became straight horizontal lines (instead of showing actual curves). Could you please have a look and point me to the right direction?
I appreciate your help.
@Hugh can you share what are the measure for those lines and how your data model looks like? Were those lines working before you added today's vertical line?
Hi @parry2k ,
The measures for those lines are:
@ZiaAnderson yes this can be achieved by writing some measures. How does your data model looks like? Do you have seperate date dimensions? What is the expression for these two measures you showed in line visual?
@parry2k I only have one table for this particular line chart called 'Data'. The fields are use are highlighted in the screen shot - I don't use measures for this chart. I have created Today Column hoping to use it to create the line.
@parry2k Here is the file that I use for that report:
Thank you very much! Enjoy your weekend!
@parry2k I am so sorry i missed your post from Friday - never recieved an email notification. Yes! That would work perfectly! How did you go about it?
Thanks @parry2k I downloaded your solution file and got it working - I needed to add a new column for Date2 based on your date +700 because it is now about 2yrs after your dates (so 'today' wasn't showing up).
However my 'today' bar is very thick, not like yours which is a line - just what I want.
Greatly appreciated if you or anyone could share how to make the column a thin vertical line.
@parry2k actually no, just realised I didn't get it working in your solution, but I got it working in mine - just the thick line rather than thin line. Thanks.
You are a genius! Thank you very much. I am new to Power BI and learing on my own as I go. Your help is very much appreciated. Have a great weekend!
Check out new user group experience and if you are a leader please create your group!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Mark your calendars and join us for our next Power BI Dev Camp!