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

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors