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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

line graph

hi 

i want to show the data of in 2 axis line graph

but for one axis it is taking total call no 

how can i display both the axis data

greeshma_0-1612698305726.png

 

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, you want to show the data of [Hour] in 2 axis line graph. I’ve downloaded your sample pbix file. I think you can give a relationship to the two tables which has “Both” filter direction, like this:

v-robertq-msft_0-1612860044903.png

 

And you can get what you want, like this:

v-robertq-msft_1-1612860044919.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

6 REPLIES 6
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, you want to show the data of [Hour] in 2 axis line graph. I’ve downloaded your sample pbix file. I think you can give a relationship to the two tables which has “Both” filter direction, like this:

v-robertq-msft_0-1612860044903.png

 

And you can get what you want, like this:

v-robertq-msft_1-1612860044919.png

 

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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

negi007
Community Champion
Community Champion

@Anonymous In case you wish to have a line chart with dual axis. You can alwasy use the secondary axis where you can put the second value like below

 

negi007_0-1612702819733.png

 

In case you are using the same column for both the axis then i suggest you to create two seperate measures and then use in primary and secondary axis.

 

let me know if you need any other help. thanks




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

Hi negi

i was trying to display 2 different months calls data which is present in 2 columns

@Anonymous In this case, I suggest you to do the below things

1. Create a date table (use date from here in the x-axis)

2. Link your date table to Table 2 (Date column1)

3.  Link your date table to Table 2 (Date column2)

4. create your measure for second relationship use it in the secondary axis

 

Since you can have only one active relationship between two tables, your secondary relationship between table1 and table2 (date column2) will have inactive relationship. You wlll have to create one measure for date column2 that will use your inactive relationship

Measure = CALCULATE(sum(xyz),USERELATIONSHIP('Calendar'[Date],table2[Date2])))

 

if any issue, please share your powerbi file




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

PhilipTreacy
Super User
Super User

@Anonymous 

It's not entirely clear what you are doing - please supply a PBIX file with this data.  Where have you placed Call No?  It's being aggregated by SUM hence the same 1373 value.

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.