Forum Discussion
kkalyanrr
7 years agoHelper V
Creating a dynamic chart(with formats Number and Percentage)
Hello, I'm trying to creat a dynamic chart(Stacked Bar Chart) which can display a metric in both number and percentage formats.. I tried creating a switch measure with appropriate formulae bu...
- 7 years ago
Hi kkalyanrr,
It is not supported to make a measure to dynamically return different data types for result. As you can in below screenshot, using FORMAT function to format result converts the data type to Text which resulted in the blank chart.
Best regards,
Yuliana Gu
itsmebvk
7 years agoContinued Contributor
kkalyanrr I am able to switch measure and format it using following formula
Swith = SWITCH(TRUE(),Report[Column]="Number",FORMAT([Number],0),Report[Column]="Percentage",FORMAT([Percentage],"Percent")