Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Display unique values using HTML & DAX

Hello everyone,

I need to edit the code to display only the unique values. In other wards to remove the duplicates of the title and subtitle (writen in red and orange).

 

description_HTML =

"<style> h4 {text-decoration: underline; text-decoration-color: red;} </style> <h4> <p style='color:red; font-family:Tahoma; font-weight:bold; font-size:18px; margin-top:1px;'>" & SELECTEDVALUE(Comments[title]) & "</p> </h4>
<p style='color:#FF7900; font-family:verdana; font-weight:bold; font-size:16px; margin-bottom:0.5px'>" & SELECTEDVALUE(Comments[sub_title]) & "</p>
<p style='color:black; font-size:14px; margin-top:0.5px;'>" & SELECTEDVALUE(Comments[description]) & "</p>"
 
I need the output to be displayed in this form:

Title
Subtitle
Comment
Comment
Comment

Title
Subtitle
Comment
Comment

Measure.PNG

Comments.PNG

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Read about using CONCATENATEX.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Read about using CONCATENATEX.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.