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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Devesa_
Frequent Visitor

Calculate mesure based on attributes in a different table

Hi everyone,

I've been trying to solve an issue with a calculation but I am stucked. Not sure wether is possible to accomplish with DAX or I may need to change the relations or even merge the tables.

 

This is the schematic model view:

image.png

The expected outcome is to calculate the Incident duration for selected impacted customers and services.  So I am pulling in a matrix Customer Name from the Customer table and Services from the Services subscribed table (contains a list of services by Customer).
image.png

The challenge is that when a service is impacted, not all customers subcribed to that service are impacted. In the same way when a Customer is impacted, not all services subscribed for that customer are impacted. Hence the existence of the two tables Customer Impacted and Service impacted.
Any idea how to calculate this?
Thanks!

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Devesa_ 

 

I add a Dim Services table to the model and modify relationships like below. 

22012401.jpg

 

Then I add duration column to Services impacted/Customer impacted tables. Below are two matrix visuals in my sample. You can download the attachment to see details. Is this what you want?

22012402.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @Devesa_ 

 

I add a Dim Services table to the model and modify relationships like below. 

22012401.jpg

 

Then I add duration column to Services impacted/Customer impacted tables. Below are two matrix visuals in my sample. You can download the attachment to see details. Is this what you want?

22012402.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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