cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
unnijoy Regular Visitor
Regular Visitor

DAX formula help

I have 3 column in my data. Two of them are date column. Learning Date Completed and Course date Completed.

Now i need to create a line graph in which x axix sould be month from January-2019 and it should go on.  And one line should show the count of month for Learning Date Completed and the other for Course date Completed. Below is the data set. 

COUNTRYRegionLearning DATE_COMPLETEDCourse DATE_COMPLETED
CanadaNorth America  
CanadaNorth America March-2019
CanadaNorth AmericaFebruary-2019January-2019
CanadaNorth America February-2019
BulgariaEuropeMarch-2019March-2019
BulgariaEurope March-2019
PhilippinesPhilippinesMarch-2019March-2019
PhilippinesPhilippinesMarch-2019March-2019
PhilippinesPhilippinesMarch-2019March-2019
BulgariaEurope March-2019
BulgariaEurope February-2019
BulgariaEurope  
BulgariaEurope February-2019
BulgariaEurope  
BulgariaEurope February-2019
BulgariaEurope  
BulgariaEurope  
BulgariaEurope  
BulgariaEurope  
BulgariaEurope April-2019
BulgariaEurope  
UKEurope  
UKEurope January-2019
UKEurope  
UKEurope February-2019
BulgariaEurope  
CanadaNorth America  
CanadaNorth America  
UKEurope  
BulgariaEurope  
BulgariaEurope  
BulgariaEurope  
BulgariaEurope  
PhilippinesPhilippinesMarch-2019March-2019
PhilippinesPhilippinesMarch-2019March-2019
CanadaNorth AmericaFebruary-2019January-2019
CanadaNorth America March-2019
UKEurope  
BulgariaEurope  
BulgariaEurope  
BulgariaEurope  
BulgariaEurope  
BulgariaEurope  
PhilippinesPhilippinesMarch-2019March-2019
UKEurope  
UKEurope  
BulgariaEurope  
BulgariaEuropeMarch-2019March-2019
BulgariaEurope  

 I have 2 filter on top which are Country and Region.  Please help

 

2 REPLIES 2
jthomson New Contributor
New Contributor

Re: DAX formula help

You need to create a date table that you use for your x-axis, then make two relationships to your data table for each date field

gooranga1 Senior Member
Senior Member

Re: DAX formula help

If you have 2 dates yo will need to unpivot them to join them to 1 date dimension.

 

If you go to edit queries and select the 2 date columsn and select unpivot. You can then join the 1 value column to date dimension and use the attribute column as the legend.

 

Data1.PNGData2.PNGData3.PNG

Helpful resources

Announcements
GregDeckler

How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Users Online
Currently online: 33 members 961 guests
Please welcome our newest community members: