Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi!
I want to bold certain part of a text that I have created a meassure from the selected values based on filters.
Eq: 2019/2020 Crocin(ESS) Threshold 77,072 Total Consumed. As you see ESS and the numbers are in Bold , how would I achieve that.
My Dax Meassure is :
Solved! Go to Solution.
Hi @Miska ,
Create the HTML table like this:
Then create measure, and put the measure into HTML Content or HTML Text Styler visuals.
Measure =
var selectedYear = SELECTEDVALUE('ADMS Outage Repair PROD'[Outage Reported Date].[Year])
var ny = selectedYear + 1
return
MAX('HTML'[Body1]) &
CONVERT(selectedYear, STRING) & "/" & CONVERT(ny, STRING) & " Crocin (" &
MAX('HTML'[Body2]) & "ESS" &
MAX('HTML'[Body3]) & ") Threshold " &
MAX('HTML'[Body2]) & [FY Threshold] &
MAX('HTML'[Body3]) & " Total Consumed" &
MAX('HTML'[Body4])
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Miska ,
Create the HTML table like this:
Then create measure, and put the measure into HTML Content or HTML Text Styler visuals.
Measure =
var selectedYear = SELECTEDVALUE('ADMS Outage Repair PROD'[Outage Reported Date].[Year])
var ny = selectedYear + 1
return
MAX('HTML'[Body1]) &
CONVERT(selectedYear, STRING) & "/" & CONVERT(ny, STRING) & " Crocin (" &
MAX('HTML'[Body2]) & "ESS" &
MAX('HTML'[Body3]) & ") Threshold " &
MAX('HTML'[Body2]) & [FY Threshold] &
MAX('HTML'[Body3]) & " Total Consumed" &
MAX('HTML'[Body4])
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Works like a charm.Thanks.
@Miska , I doubt you can do that.
But if can convert this to HTML code, the HTML content might help . They have given some example on the link too
https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa200001930?tab=overview
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
94 | |
82 | |
66 | |
59 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |