cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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 Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (4,616)