cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
tatasherry Regular Visitor
Regular Visitor

show values in different formats in a line chart

I have a table as this:

A should be shown as whole number;

B should be shown as percentage.

 

table2.png

 

I want to build a line chart like this:

result2.png

 

The problem is

 

if I use "Modeling"---"%", it will change both of the line.

 

If I use a measure as :

 

showpercent = IF(
CONTAINS('Table1','Table1'[Name],"B"),
FORMAT( SUM('Table1'[Values]), "0.00%"),
FORMAT(SUM('Table1'[Values]),"0")
)
 
The measure can not use in the line chart's value filed.
 
 
Please help, thank you!
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: show values in different formats in a line chart

Hitatasherry,

I assume that your data sample might be similar to below

30.png

Then you could create measures like below

A = CALCULATE(SUM(F1[valeu]),FILTER(F1, F1[name]="A"))

B = CALCULATE(SUM(F1[valeu]),FILTER(F1, F1[name]="B"))

Then click on B and format this by click %

Capture20.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: show values in different formats in a line chart

Hitatasherry,

I assume that your data sample might be similar to below

30.png

Then you could create measures like below

A = CALCULATE(SUM(F1[valeu]),FILTER(F1, F1[name]="A"))

B = CALCULATE(SUM(F1[valeu]),FILTER(F1, F1[name]="B"))

Then click on B and format this by click %

Capture20.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)