Forum Discussion
EmilieRuff
9 months agoNew Member
Data formatting issue
Quick question but I have a feeling it might not be possible. I am using an excel source document with columns. One column holds the data. The other columns are for filtering purposes. The data ...
- 9 months ago
Hello EmilieRuff
USE DAX for dynamic formatting
Formatted Value =
IF(
SELECTEDVALUE('Table'[Type]) = "Percentage",
FORMAT([Value], "0.00%"),
FORMAT([Value], "0.00")
)
If my response helped you, please consider clicking
Accept as Solution ✅ and giving it a Like 👍 – it helps others in the community too.
Thanks,
Connect with me on:
LinkedIn
WishAskedSooner
9 months agoContinued Contributor
I am not sure I would really recommend this over separating your data, but you could add a conditional format in a measure and use that in your chart e.g.
MyMeasure = IF( 'MyTable'[Attribute] = SomeValue, FORMAT( 'MyTable'[Value], "0.00" ), FORMAT( 'MyTable'[Value], "0%" ) )
EmilieRuff
9 months agoNew Member
Thank you for your suggestion. I think this is the direction I will investigate.