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
WBscooby
Helper III
Helper III

Combining data from unrelated FACT tables or rework schema

Hi

 

I'm hoping for some modelling/ measure advice.

 

I have a schema that has 2 separate fact tables - FACToutcomes and FACTincidents.

FACToutcomes relates to tables outcome, customer and date
FACTincidents relates to tables incident, customer and date
Both of the tables also has a subtype column

Each of the tables relate to the same Customer and date dimension tables but not to each other.

 

To date, I have kept the tables as separate fact tables because outcomes has several other important dimension tables which have no relation to incidents and by combining, I found I was getting lots of null values in my FACT table.

 

However, for business reasons, there are occasions when outcomes and incidents need to be counted together to demonstrate total 'throughput'. This, for instance, would require displaying both the subtypes for outcomes and incidents on the same axis on a chart.

I am going round in circles trying to decide if it is better to keep my model as it is and try to create measures to demonstrate this or if I should rework my model.

 

I have created a measure to calculate the information I require, but can't work out how I then would create an axis to display this on. It's important that the result is dynamic so different date quarters can be selected using a slicer.

Any advice would be greatly appreciated!

 

My measure:

SUMX(
UNION(
SELECTCOLUMNS(
SUMMARIZE(
'FACTOutcomes',
'Outcome'[Type],
"OutcomeCount", COUNT('Outcome'[Outcome_ID])
),
"Outcome", [Type],
"OutcomeCount", [OutcomeCount]
),
SELECTCOLUMNS(
SUMMARIZE(
'FACTIncidents',
'Incidents'[Type],
"OutcomeCount", COUNT('Incidents'[Incident_ID])
),
"Outcome", 'Incidents'[Type],
"OutcomeCount", [OutcomeCount]
)
),
[OutcomeCount]

)

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@WBscooby , You need to have a common table Type

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...

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

2 REPLIES 2
WBscooby
Helper III
Helper III

Thank you,for a really helpful and clear explanation

amitchandak
Super User
Super User

@WBscooby , You need to have a common table Type

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-soluti...

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
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.