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 August 31st. Request your voucher.

Reply
pokdbz
Helper II
Helper II

Total incorrect using 2 different Fact tables

This shows correct Day Values but wrong Total

Variance vs. Fin Fcst $ =

IF ( ISBLANK ( [Actual] ), BLANK (), [Actual] - [Financial Forecast] )

 

 

This shows correct Total but wrong days

Variance vs. Fin Fcst $ 2 =

SUMX (

    'Calendar',

    IF ( ISBLANK ( [Actual] ), BLANK (), [Actual] - [Financial Forecast] )

)

 

 

Actual is off this FACT table ‘Daily Sales POS’

Financial Forecast this is off FACT table ‘SalesProj’

 

I cannot get the total to come out correctly using SUMX because the 2 values are based off of 2 different table tables.

 

pokdbz_0-1748445766783.png

 

1 ACCEPTED SOLUTION
d_m_LNK
Resolver II
Resolver II

I think adding some logic to check for the total row will help you pull these things together. 

Here is a video from Pragmatic Works about this: How to Solve the Total Row with DAX in Power BI Desktop - YouTube

 

Code:
IF(HASONEVALUE(Calendar[Date]), [Actual] - [Financial Forecast],

SUMX('Calendar', [Actual] - [Financial Forecast])

)

 

View solution in original post

4 REPLIES 4
d_m_LNK
Resolver II
Resolver II

I think adding some logic to check for the total row will help you pull these things together. 

Here is a video from Pragmatic Works about this: How to Solve the Total Row with DAX in Power BI Desktop - YouTube

 

Code:
IF(HASONEVALUE(Calendar[Date]), [Actual] - [Financial Forecast],

SUMX('Calendar', [Actual] - [Financial Forecast])

)

 

Hi @pokdbz,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @d_m_LNK for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user resolved your issue? or let us know if you need any further assistance.
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @pokdbz,

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user resolved your issue.
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @pokdbz,

 

We wanted to kindly follow up to check if the solution provided by the user resolved your issue.
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.