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 September 15. Request your voucher.
Hi there
Can somsone please help with the below
I'm trying to add a line in to a line chart where basically shows the max starting position and the end position in a straight line. I have added a screenshot below and drawn the line in. I have tried using the in-built funactionalities of formating the chart but I can't seem to find anything that will work.
Can someone please help
Thank you
Karen
Solved! Go to Solution.
For this add a new measure with the following syntax:
Max min line =
IF (
MAX ( 'Table'[Date] ) = MAXX ( ALL ( 'Table'[Date] ), 'Table'[Date] )
|| MIN ( 'Table'[Date] ) = MINX ( ALL ( 'Table'[Date] ), 'Table'[Date] ),
SUM ( 'Table'[Value] )
)
Then add this as a secondary measure on your chart
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português
Replace the ALL on the measure by ALLSELECTED everything else keep as is.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português
For this add a new measure with the following syntax:
Max min line =
IF (
MAX ( 'Table'[Date] ) = MAXX ( ALL ( 'Table'[Date] ), 'Table'[Date] )
|| MIN ( 'Table'[Date] ) = MINX ( ALL ( 'Table'[Date] ), 'Table'[Date] ),
SUM ( 'Table'[Value] )
)
Then add this as a secondary measure on your chart
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHI @MFelix
Thanks very much for getting back to me. It works brilliantly but as soon as I start filtering on dates it stops working. Eaxmples below.
Before changing date range
After date range change. You can see I just get a dot on the far right
Can you please advise if this is possible to fix, so its interactive with whatever date range you select
Appreciate all your help
Kind regards
Karen
Replace the ALL on the measure by ALLSELECTED everything else keep as is.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHI @MFelix
Brilliant that worked a treat. I did try ALLSELECTED but I had the date in this format
Thanks for all your help 🙂
Have a great day
Kind regards
Karen
User | Count |
---|---|
58 | |
56 | |
55 | |
50 | |
32 |
User | Count |
---|---|
172 | |
89 | |
70 | |
46 | |
45 |