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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
katemke
Frequent Visitor

Graphing two counts onto same visual with multiple date columns

I have a table that contains data similar to what is below (has been created from two distinct tables already:

 

HP IDRC IDContact DateContact IDConsent Date

10

13/10/20211.13/1/2021
null23/10/20212.1null
null23/11/20212.2null
11nullnullnull3/2/2021
1233/3/20213.13/1/2021
1233/3/20213.23/1/2021
1343/5/20214.13/5/2021

 

i have also created a simple date table and created relationship (one active, one inactive) with the two date columns in the table above

 

I am trying to create a single visual that will chart the number of contacts (distinct count of Contact IDs) on a single date and the number of consent (distinct count of HP ID's) on a single date - either as two disinct lines, or a bar/line graph, with the shared access being the date, but am not sure how to go about creating the correct measures to do so. 

 

Any help would be greatly appreciated. Thanks so much!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@katemke , If they are two tables - no column, with date table you can have two active join and you can work with count and sum measures from both tables

 

If they two dates from one table. One inactive relationship need to be activated using userelationship

And you need use common date from date table on slicer and axis

 

example

calculate( SUM(Sales[Sales Amount]),USERELATIONSHIP ('Table'2[CreateDate], 'Date'[Date]))

 

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@katemke , If they are two tables - no column, with date table you can have two active join and you can work with count and sum measures from both tables

 

If they two dates from one table. One inactive relationship need to be activated using userelationship

And you need use common date from date table on slicer and axis

 

example

calculate( SUM(Sales[Sales Amount]),USERELATIONSHIP ('Table'2[CreateDate], 'Date'[Date]))

 

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.