cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Show values from 2 different date columns

Hi all,

 

I need to merge these 2 graphs in 1. 

Emanuel_0-1600787056641.png 

Emanuel_2-1600787110135.png

Each of them have a different date column: submit date and last completed date. The measures are:

count_of_PBI = COUNT(Report[Problem ID*+])
count_of_lastCompleted = COUNT(Report[Last Completed Date])
 

The outcome should be :

 

Capture.PNG

 

Thank you in advance for the help.

 
 
 
1 ACCEPTED SOLUTION
Super User I
Super User I

Hello @Emanuel ,

 

Based on your description, you need to show two different date field on one axis. For this, you can take help of a calendar table

 

https://www.vivran.in/post/power-bi-time-intelligence-calendar-table

 

and the connect it with your data table on both the dates:

Relationship.gif

 

Then modify your measures with USERELATIONSHIPS:

 

Count_of_lastCompleted =
   CALCULATE(

      COUNT(Report[Last Completed Date]),

             USERELATIONSHIP(Report[Last Completed Date]), ftCalendar[Date])
)

 

Please follow the artilce for more details:

https://www.vivran.in/post/multiple-dates-on-the-same-axis-dax-userelationship

 

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

 

View solution in original post

1 REPLY 1
Super User I
Super User I

Hello @Emanuel ,

 

Based on your description, you need to show two different date field on one axis. For this, you can take help of a calendar table

 

https://www.vivran.in/post/power-bi-time-intelligence-calendar-table

 

and the connect it with your data table on both the dates:

Relationship.gif

 

Then modify your measures with USERELATIONSHIPS:

 

Count_of_lastCompleted =
   CALCULATE(

      COUNT(Report[Last Completed Date]),

             USERELATIONSHIP(Report[Last Completed Date]), ftCalendar[Date])
)

 

Please follow the artilce for more details:

https://www.vivran.in/post/multiple-dates-on-the-same-axis-dax-userelationship

 

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

 

View solution in original post

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors