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

How to put two different curve on the same graph

Hello,

 

I have table which contains the number of posted invoices per date as well as the total number of invoices processed by date.

If we divide the number of posted invoices by the total number of invoices processed, we obtain what we refer to the Hit rate.

 

The hit rate is calculated for almost each day for 2019 and 2020.

 

So I wonder if there is a way to put the two curves on the sames graph, not 2019 and 2020 on the same line.  On for 2019 and one for 2020 but on the same graph.

 

Does someone know how to do it.

Regards,

 

1 ACCEPTED SOLUTION

@Anonymous 

 

In my opinion, following visual should solve the purpose:

 

Untitled.png

This sample visual I have created using measures.

 

Is this what you are looking for?

 

Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂

https://www.vivran.in/

Connect on LinkedIn

 

View solution in original post

3 REPLIES 3
vivran22
Community Champion
Community Champion

Hello @Anonymous ,

 

You can do that by creating two measures: one for 2019 & another for 2020

 

Hit Rate = DIVIDE(SUM(Posted Invoice), SUM(Invoice Processed))

Hit Rate 2019 = CALCULATE ( [Hit Rate], FILTER( tablename, Year = 2019))

Hit Rate 2020 = CALCULATE ( [Hit Rate], FILTER( tablename, Year = 2020))

 

and then use these measures in your visuals.

 

Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂

https://www.vivran.in/

Connect on LinkedIn

 

Anonymous
Not applicable

Hello,

 

What you suggest is interesting but What I am looking for is more a dual x axis graph.  Let say that for the first curve, the transaction date vary from jan 2019, fev 2019,..., dec 2019.  For the other curve we have the transaction date vary from jan 2020, fev 2020..., dec 2020. 

 

So is it possible to get a graph with dual x axis

Regards,

 

@Anonymous 

 

In my opinion, following visual should solve the purpose:

 

Untitled.png

This sample visual I have created using measures.

 

Is this what you are looking for?

 

Cheers!
Vivek

If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂

https://www.vivran.in/

Connect on LinkedIn

 

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.