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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
koningii
Frequent Visitor

How to 2 values in 1 graph using DAX

I would like to have a graph with 2 lines that show 

- month on x-as

- amount of times that in that months a document was created. See the table attached. 

 

I am struggling to get it in 1 graph. 

 

koningii_0-1641197150799.png

 

1 ACCEPTED SOLUTION

Hi,

In that case you could add Year to the x-axis and then drill down using the two arrows in the picture:

ValtteriN_0-1641202318131.png

ValtteriN_1-1641202360179.png

 

 





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ValtteriN
Super User
Super User

Hi,

To create a graph like the one you described just place values similarly to this picture:

ValtteriN_0-1641198264691.png

In your case, I suggest having a calendar table and placing a month column from there to the axis. Additionally, since you are interested in how many documents were created you can use COUNT as the aggregation instead of SUM. You could make measures for document creation planned vs actual and use those. So, e.g. Measure1 = COUNT('Table'[IFC Plan]).

I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!

 





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

Proud to be a Super User!




@ValtteriN that worked. I would like to have the years as noovember is from 2021 en juni from 2022

 

koningii_0-1641202065584.png

 

 

Hi,

In that case you could add Year to the x-axis and then drill down using the two arrows in the picture:

ValtteriN_0-1641202318131.png

ValtteriN_1-1641202360179.png

 

 





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

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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