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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Get 2 line graph for 2 different date columns in power BI

Hi, I need help in creating two line graph for 2 different date columns in power BI. Snapshot : I have two columns in a file with the date of the tickets entered and another column for the date of those ticket completed. However I need to see the days on which these tickets were entered and closed. Any help would be appreciated

First column (Entered Date on)

Second Column (Date Completed on)

The idea is to get the statistics of each count per day in X axis.

I am looking to merge both the below stats. 

Stevenfapcd_0-1619141110401.png

 

My data source

Date Entered OnDate Completed on
01-04-2110-04-21
01-04-2110-04-21
01-04-2110-04-21
01-04-2110-04-21
01-04-2110-04-21
01-04-2105-04-21
01-04-2105-04-21
01-04-2105-04-21
01-04-2105-04-21
02-04-2105-04-21
02-04-2105-04-21
02-04-2105-04-21
02-04-2105-04-21
05-04-2107-04-21
05-04-2107-04-21
06-04-2107-04-21
06-04-2107-04-21
06-04-2107-04-21
06-04-2107-04-21
06-04-2107-04-21
07-04-2108-04-21
07-04-2108-04-21
07-04-2108-04-21
07-04-2108-04-21
07-04-2109-04-21
07-04-2109-04-21
07-04-2109-04-21
08-04-2109-04-21
08-04-2109-04-21
08-04-2109-04-21
1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

You can create a calendar table and two measures.

Like this:

Table 2 = CALENDAR(DATE(2021,4,1),DATE(2021,4,31))
complete =
CALCULATE (
    COUNT ( 'Table'[Date Completed on] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Date Completed on] = SELECTEDVALUE ( 'Table 2'[Date] )
    )
)
enter =
CALCULATE (
    COUNT ( 'Table'[Date Entered On] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Date Entered On] = SELECTEDVALUE ( 'Table 2'[Date] )
    )
)

4.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

You can create a calendar table and two measures.

Like this:

Table 2 = CALENDAR(DATE(2021,4,1),DATE(2021,4,31))
complete =
CALCULATE (
    COUNT ( 'Table'[Date Completed on] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Date Completed on] = SELECTEDVALUE ( 'Table 2'[Date] )
    )
)
enter =
CALCULATE (
    COUNT ( 'Table'[Date Entered On] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Date Entered On] = SELECTEDVALUE ( 'Table 2'[Date] )
    )
)

4.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Brillant. Thanks @v-janeyg-msft it worked. You are a genius 🙂

Anonymous
Not applicable

Hi, Any help on this would be appreciated, Although it looks simple but I guess its difficult. @

amitchandak

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors