Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I am creating a line chart to show a trend line for company specific metrics. I have used the SWITCH function to construct the formula seem below:
Solved! Go to Solution.
@Anonymous wrote:
For example. the months of November and December do not display the line at a monthly level but if filtered down to a daily level the line magically shows up.
The SELECTEDVALUE function will return a blank if there are multiple values within the current filter context. If you're grouping at the month level, then you'll get a blank since there isn't a single value to return. You need to tell it what date you want to compare to when multiple are available. One way to do this is to use MAX instead of SELECTEDVALUE.
@Anonymous wrote:
For example. the months of November and December do not display the line at a monthly level but if filtered down to a daily level the line magically shows up.
The SELECTEDVALUE function will return a blank if there are multiple values within the current filter context. If you're grouping at the month level, then you'll get a blank since there isn't a single value to return. You need to tell it what date you want to compare to when multiple are available. One way to do this is to use MAX instead of SELECTEDVALUE.
Hi Alexis, this fixed both of my problems, thank you for the tip and insight. I will remember this for the future!