Hey James,
It actually is possible to do this, though the method is definitely not intuitive!
1) Take your HTML component and separate our your dynamic text portion to make things a bit easier to read
<div class="kpi-bar-widget-item" style="height:200px;width:865px;padding:5px 10px 5px 10px;border-radius: 6px 6px 6px 6px;border:1px solid gray;background-color:white;"><span class="kpi-bar-text1">OpEx Budget Commentary</span> <br/><span style="display:block;margin-top:5px;"><ul><li>
<%=Commentary%>
</li></ul></span></div>
2) Change the "=Commentary" to "=UniqueValues(CIO Commentary-OpEx:Commentary)"
<div class="kpi-bar-widget-item" style="height:200px;width:865px;padding:5px 10px 5px 10px;border-radius: 6px 6px 6px 6px;border:1px solid gray;background-color:white;"><span class="kpi-bar-text1">OpEx Budget Commentary</span> <br/><span style="display:block;margin-top:5px;"><ul><li>
<%=UniqueValues(CIO Commentary-OpEx:Commentary)%>
</li></ul></span></div>
This will cause the HTML to return all values from the CIO Commentary-OpEx Commentary field, although they will all be surrounded by quotations, and concatenated together.
3) Substitute suffix quotations for new bullets
Do this by wrapping your UniqueValues() function with a Substitute function as follows:
<div class="kpi-bar-widget-item" style="height:200px;width:865px;padding:5px 10px 5px 10px;border-radius: 6px 6px 6px 6px;border:1px solid gray;background-color:white;"><span class="kpi-bar-text1">OpEx Budget Commentary</span> <br/><span style="display:block;margin-top:5px;"><ul><li>
<%=Substitute(UniqueValues(CIO Commentary-OpEx:Commentary),""",""","<li>")%>
</li></ul></span></div>
What this will do is replace any instance of quotation mark and comma (",) with a new bullet line (<li>)
4) Substitute beginning and ending quotation marks with blanks
Do this by wrapping our formula with one final Substitute function as follows:
<div class="kpi-bar-widget-item" style="height:200px;width:865px;padding:5px 10px 5px 10px;border-radius: 6px 6px 6px 6px;border:1px solid gray;background-color:white;"><span class="kpi-bar-text1">OpEx Budget Commentary</span> <br/><span style="display:block;margin-top:5px;"><ul><li>
<%=Substitute(Substitute(UniqueValues(CIO Commentary-OpEx:Commentary),""",""","<li>"),"""","")%>
</li></ul></span></div>
...And with that, you should be good to go!
There are however, some technical considerations to be aware of:
This is not a 100% HTML compliant solution
When you substitute <li> in step 3, modern browsers will be smart enough to create new bullets, but you never actually close the tag with a corresponding </li>. This should be fine in most cases, but some older versions of IE may handle this in unexpected ways--test this on your company's own supported browsers to determine if it is an issue.
This is will not work if your comment rows contain quotations or commas
This solution does two different substitute functions based on commas and quotations, if your comment fields contain their own commas and quotations then the results will not be as expected.
Hope this helps!
- Michael Verkruyse