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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Emanuel
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
vivran22
Community Champion
Community Champion

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
vivran22
Community Champion
Community Champion

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

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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