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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ashwinje
New Member

Detail table using inactive relationship

I have a sales table with two date columns: an initial contact date and a booking date. I related both these date columns to a date table with the booking date as the active relationship. Using the date table relationship, I am able to get monthly counts of initial contact and bookings. Since the booking date is the active relationship, I can click on a month and get the list of bookings in a detail table.

 

Now I want another detail table with the list of initial contacts in that month. So this detail table needs to use the inactive relationship between the initial contact date and the date table, to get the rows that have initial contact dates that fall within the selected month. How do I do this? 

1 REPLY 1
DataInsights
Super User
Super User

@ashwinje, create the measures below:

 

Count - Contact Date = 
CALCULATE (
    COUNT ( Sales[Customer] ),
    USERELATIONSHIP ( 'Date'[Date], Sales[Contact Date] )
)

Count - Booking Date = COUNT ( Sales[Customer] )

 

Result:

 

DataInsights_0-1598569735210.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.