Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
mrData
New Member

How to make a percentage chart between x and x

I don't know exactly how to explain it but I can visualize it. 

 

I have a list with trades like this:

TICKERPOSITIONSHARESENTRY PRICEEXIT PRICEP/L $P/L %
TICKER 1Long11024.5126.52221.18.2
TICKER 2Long6021.0823.34135.610.72
TICKER 3Long1042.850.14573.4517.16
TICKER 4Long23014.2814.647584.532.57
TICKER 5Long23014.0714.4587.42.7

 

What I am looking for is a chart like this:

mrData_0-1696400589482.png

 

What I could do is to add to the list the percentages as a row and manually add all the P/L %'s to it:

TICKERPOSITIONSHARESENTRY PRICEEXIT PRICEP/L $P/L %-10%-9%-8%-7%-6%-5%-4%-3%-2%-1%0%1%2%3%4%5%6%7%
TICKER 1Long11024.5126.52221.18.2                  
TICKER 2Long6021.0823.34135.610.72                  
TICKER 3Long1042.850.14573.4517.16                  
TICKER 4Long23014.2814.647584.532.57                  
TICKER 5Long23014.0714.4587.42.7                  

 

Is there a better way to achieve this result? 

2 ACCEPTED SOLUTIONS
isjoycewang
Solution Supplier
Solution Supplier

Hi @mrData,

 

You'll need to first define your x-axis column group, for example, ROUNDDOWN to group the percentage.

And then you can put it in the chart to count how many records in each group.

 

Share the demo file here. Thanks!

 

isjoycewang_0-1696406796087.png

isjoycewang_1-1696406886528.png

 

 

View solution in original post

You can add it in DAX formula.

Close the Power Query, click on table and add a new column. Thanks!

View solution in original post

4 REPLIES 4
mrData
New Member

I got it working now but it's not that visually clear. 

Can I also get a line in like this where you can see what the overall percentage curve is:

mrData_0-1696422088481.png

Does this make any sence? 

isjoycewang
Solution Supplier
Solution Supplier

Hi @mrData,

 

You'll need to first define your x-axis column group, for example, ROUNDDOWN to group the percentage.

And then you can put it in the chart to count how many records in each group.

 

Share the demo file here. Thanks!

 

isjoycewang_0-1696406796087.png

isjoycewang_1-1696406886528.png

 

 

I get an error when adding a new column like that:

mrData_0-1696409041907.png

Here is the error:

mrData_1-1696409061846.png

 

You can add it in DAX formula.

Close the Power Query, click on table and add a new column. Thanks!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors