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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Super User
Super User

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
Super User
Super User

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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