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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ansar
Helper II
Helper II

2 Fact table - How to sum the values in to

Dears, need your help,

 

i have 2 fact table in my model , which is connected to date table and a Dim table(Driver).

 

Is there any way the model consider 2 fact table as one and get the total values of LC amount column from both table without sum both individual measures.

 

Total PE & SO = SUM('PE & SO'[ LC amnt])
Total BDA = SUM(BDA[ Amount LC])
Total = [Total BDA] + [Total PE & SO]

 

ansar_0-1652424177305.png

 

ansar_1-1652426747276.png

 

regards,

Ansar.

2 ACCEPTED SOLUTIONS

Thanks @SpartaBI , let me know my understand is clear from your reply

1. both fact table is not having similar structure only few fields are common (Date, Driver, Agreement #) so append in power query is also not a good option

2. combine both measure in to one dax formula is the solution suggested, then we can slice n dice based on dim table relation ship.

View solution in original post

SpartaBI
Community Champion
Community Champion

@ansar yes 🙂
You can also just put everthing in one measure, in case you don't use the other two for anything else excpet for the final one. It's the same, just fewer measures in the pane on the right. No impact on result or performance.

Total = SUM(BDA[ Amount LC]) + SUM('PE & SO'[ LC amnt])


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

3 REPLIES 3
SpartaBI
Community Champion
Community Champion

@ansar no 🙂
If these two tables are the same structure and only diffrentiate by one column you can union them in Power Query or in DAX and have a column that will have 2 values: BDA and PE & SO. Then you could just create one measure and slice and dice by filters on that column etc.


2022-05-09 21_46_30-Auto sign in click on _Sign-in_ if button appears ... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Thanks @SpartaBI , let me know my understand is clear from your reply

1. both fact table is not having similar structure only few fields are common (Date, Driver, Agreement #) so append in power query is also not a good option

2. combine both measure in to one dax formula is the solution suggested, then we can slice n dice based on dim table relation ship.

SpartaBI
Community Champion
Community Champion

@ansar yes 🙂
You can also just put everthing in one measure, in case you don't use the other two for anything else excpet for the final one. It's the same, just fewer measures in the pane on the right. No impact on result or performance.

Total = SUM(BDA[ Amount LC]) + SUM('PE & SO'[ LC amnt])


2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.