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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
robcrockford
Advocate I
Advocate I

Merging Date Fields

Hi,

 

I have a fact table that contains multiple date fields:

 

Created Date

Quoted Date

Instructed Date

Completed Date

 

I wish to have counts for each of these under one month heading in a matrix table - does anyone know how this is possible?

 

At the moment I have added a date table which links a date to the created date, but any counts for the other fields will be based on the created date not the others.

 

Thanks in advance

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

hi @robcrockford

 

First create relatiosnhips between date columns and Date Table.

 

This should like this:

 

 

 

 

 

Img1.png

 

Next create measure to count for every date column:

 

Count-Created = CALCULATE(Count(Tabla1[Value]);Tabla1[Created Date])

 

Count-Quoted = CALCULATE(Count(Tabla1[Value]);USERELATIONSHIP(Calendario[Date];Tabla1[Quoted Date]))

 

Count-Instructed = CALCULATE(Count(Tabla1[Value]);USERELATIONSHIP(Calendario[Date];Tabla1[Instructed Date]))

 

Count-Completed = CALCULATE(Count(Tabla1[Value]);USERELATIONSHIP(Calendario[Date];Tabla1[Completed Date]))

 

Img2.png




Lima - Peru

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@robcrockford

 

In this senario, since your date table has date column link to create, it definitely will count other fields within the month based on created date. For your requirement, you should have another calendar date column in your fact table which links the date table so that all 4 kinds of date will be counted within a calendar month.

 

Regards,

Vvelarde
Community Champion
Community Champion

hi @robcrockford

 

First create relatiosnhips between date columns and Date Table.

 

This should like this:

 

 

 

 

 

Img1.png

 

Next create measure to count for every date column:

 

Count-Created = CALCULATE(Count(Tabla1[Value]);Tabla1[Created Date])

 

Count-Quoted = CALCULATE(Count(Tabla1[Value]);USERELATIONSHIP(Calendario[Date];Tabla1[Quoted Date]))

 

Count-Instructed = CALCULATE(Count(Tabla1[Value]);USERELATIONSHIP(Calendario[Date];Tabla1[Instructed Date]))

 

Count-Completed = CALCULATE(Count(Tabla1[Value]);USERELATIONSHIP(Calendario[Date];Tabla1[Completed Date]))

 

Img2.png




Lima - Peru

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.