I have encountered with a situation where I have a line chat visual in my Power BI report. I use a Measure to show various trends based in the selection.
Here is the DAX which I used to display the trends based on selection.
By using the FORMAT function within the “Buy Down” branch of the IF statement, you can apply the desired formatting to the value of [Avg Buy Down Test 1]. The “$#,##0.00” format code specifies that the value should be displayed as currency with two decimal places and a comma separator for thousands.
Make sure that [Avg Buy Down Test 1] is defined as a currency data type, as you mentioned, for the formatting to work correctly.
With this modification, the “Buy Down” line should display the value with the $ sign prefixed.
I have followed this format option earlier it self if you see my thread I mentioned that I have used this format option as you mentioned but when I’m using this entire visual is becoming blank.
Hi @Bq1BQfLi - For this to work, you need to make formatting of “Selected Metric Test” dynamic. For this refer to newly introduced “Dynamic formatting” option by Power BI in April 2023. Refer to SQL BI article or other similar ones available online.
if still face issues, share sample PBIX file and I can try for you.
Due to inactivity, we’d like to conclude that you no longer require assistance to solve your inquiry.
If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box.