cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RomyL1 Frequent Visitor
Frequent Visitor

Can chart visuals display formatted percentage data

Hi, I'm creating a Column Chart and a Matrix visuals with a column slicer switching between Numbers and Percentage. Both of the number and percentage are shown perfectly in the matrix visual, however, the percentage data isn't shown in the chart at all. Any idea how to display the formatted percentage data in the column chart? Thank you!!

 

Here is what I created for the measure "selectedValue" which is for the value field in both visuals:

 

selectedValue = 
IF (
ISFILTERED ('Type'[Type]) && HASONEVALUE ('Type'[Type]),
if(LASTNONBLANK ('Type'[Type], 0 )="Number",
SUM(MySchool[Number]),
if(LASTNONBLANK ('Type'[Type], 0 )="Percentage",
FORMAT(SUM(MySchool[Percentage]),"0%")
)
),
BLANK()
)

 

2018-06-28_10-09-09.png

2018-06-28_10-09-26.png

2 REPLIES 2
Community Support Team
Community Support Team

Re: Can chart visuals display formatted percentage data

Hi @RomyL1,

 

It seems that you have two tables, to get the solution, I need your data sample.

 

If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

 

Best regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
RomyL1 Frequent Visitor
Frequent Visitor

Re: Can chart visuals display formatted percentage data

Hi Cherry, Thanks a lot for looking into this questoin. Currently I got an alternative solution for this question which is to create another measure and display different column/measure in the chart and matrix. But I still want to know if there is a way to display the two different data type (whole number and formatted percentage) in one chart by using the IF function. Here is the .pbix link from my one drive.

 

PowerBI_Report.pbix

 

Thank you!

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 351 members 3,214 guests
Please welcome our newest community members: