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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
salafoo
Helper I
Helper I

How to add data on a linear graph by two date

Hello All

 

I have a table of which has three columns

A) Application Number

B) Submission Date

C) Approval Date 

 

I want to make a graph as same as the below graph (Counting the number of submitted vs. approved application per month) - Graph Source: PowerPoint 

 

Graph

 

Thank you in advance

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hello,

 

The typical way of handling this is to have a Date table, and create

  • An active relationship between one of your date columns (say Submission Date) and the Date table
  • And an inactive relationship between the other date column (say Approval Date) and the Date table

Assuming the active relationship is with Submission Date, you would create measures something like this using USERELATIONSHIP to activate the inactive relationship (I'm assuming COUNTROWS makes sense as a measure):

 

Submissions Count =
COUNTROWS ( Submissions )

Approval Count =
CALCULATE (
    COUNTROWS ( Submissions ),
    USERELATIONSHIP ( Submissions[Approval Date], 'Date'[Date] )
)

See these two pages for good explanations:

https://exceleratorbi.com.au/multiple-relationships-between-tables-in-dax/

https://blog.enterprisedna.co/2017/10/16/working-with-multiple-dates-in-power-bi/


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

3 REPLIES 3
OwenAuger
Super User
Super User

Hello,

 

The typical way of handling this is to have a Date table, and create

  • An active relationship between one of your date columns (say Submission Date) and the Date table
  • And an inactive relationship between the other date column (say Approval Date) and the Date table

Assuming the active relationship is with Submission Date, you would create measures something like this using USERELATIONSHIP to activate the inactive relationship (I'm assuming COUNTROWS makes sense as a measure):

 

Submissions Count =
COUNTROWS ( Submissions )

Approval Count =
CALCULATE (
    COUNTROWS ( Submissions ),
    USERELATIONSHIP ( Submissions[Approval Date], 'Date'[Date] )
)

See these two pages for good explanations:

https://exceleratorbi.com.au/multiple-relationships-between-tables-in-dax/

https://blog.enterprisedna.co/2017/10/16/working-with-multiple-dates-in-power-bi/


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn
salafoo
Helper I
Helper I

Hello all,

 

I have a table of which has three columns:

A) Application Number

B) Submission Date

C) Approved Date

 

I need your help in creating a graph to compare the submitted vs approved application per month as same as the below 'PowerPoint' graph. 

 

Capture.PNG

 

Thank you in advance.

Sorry guys, I reposted the topic as I thought the first one was not posted successfully, so you will notice that i have the same topic twice.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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