Forum Discussion
Anonymous
4 years agoNot applicable
Format String Expression to reflect absolute and percentage value
Hello, I need to reflect value on a column chart in both absolute and percentage (in relate to other number) value. Example below. In order to do so, I used format string expression in ...
vojtechsima
Super User
4 years agoHi, Anonymous
Try something like this:
Formatting =
var wyk = FORMAT ( MAX(SomethingSomething[Something]), "#,###,###.00")
var wyk_p = FORMAT ( MAX(SomethingSomething[Something2]), "##.00%")
return wyk & " / "& wyk_p
SergioSilvaPT
Resolver V
4 years agovojtechsima why you used the MAX function inside the FORMAT?
- vojtechsima4 years ago
Super User
Hi, SergioSilvaPT
Just to make my sample data work, it is not necessary, but I didn't have row context so I had to help myself with MAX.- SergioSilvaPT4 years ago
Resolver V
OK, thanks for the explanation!
That's the beauty of Power BI and Data Analysis, you don't have one unique solution, you have many that can be used to achieve our requirements! 😊