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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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