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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Gigi2909
Frequent Visitor

Power BI Total Incorrect

Hi,

I created a measure if actual isblank, then use LBE. but the total is incorrect. 

LBEorACT = if (ISBLANK(sum(table1[Actual])),sum(table2[LBE]),sum(table1[Actual])).
The result seems correct, except for the total.
 
I have 3 tables. table 1 contains actual, table 2 contains LBE, table 3 is calendar

 

example:

Month        Actual    LBE  LBEorAct   CumAct  CumLBEorAct

Jan                10          20            10              10            10

Feb                             20             20

Mar                            20             20

Apr                             20             20

Total              10         80              20===> this should be 70

3 REPLIES 3
Gigi2909
Frequent Visitor

tried, but didnt work. got the same result.

I have a table for actuals, another for LBE. all I want is a table to show LBEorActual 

For example, if there is actual$ for Jan only, then Feb-Dec use LBE$. So I can have Full Year Forecast of Actual and LBE.

 

Month        Actual    LBE  LBEorAct   CumAct  CumLBEorAct

Jan                10          20            10              10            10

Feb                             20             20

Mar                            20             20

Apr                             20             20

Total              10         80              20===> this should be 70

Can you please share your PBI file?


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696
AmiraBedh
Super User
Super User

You are having an issue with the total because the formula is not accounting for the context of the calculation.

The missing part here is the aggregation over time  so you may need TOTALYTD() :

 

LBEorACT =
IF(
ISBLANK(SUM(table1[Actual])),
TOTALYTD(SUM(table2[LBE]), 'table3'[Date]),
TOTALYTD(SUM(table1[Actual]), 'table3'[Date])
)

Can you also share your PBI file to have more info about your situation ?


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Users online (2,448)