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
AndrejZitnay
Post Patron
Post Patron

Sum of measure out of opening balance aren't correct

Hello all,

 

Would you be so kind and help me out with measures that comes out of opening balance?

 

Sum of measure out of opening balance aren't correct

 

Sum of Measure 1 is showing in PBI 28.20 however it should be 35.00

Sum of Measure 2 is showing in PBI 57,750.00 however it should be 72,916.67

Sum of Measure 3 is showing in PBI 3,525.00 however it should be 4,375

 

 
MonthlyNew = SUMX('Table 1','Table 1'[Monthly New])
Deduction 1 = SUMX('Table 2','Table 2'[Deduction 1])*-1
Deduction 2 = SUMX('Table 3','Table 3'[Deduction 2])*-1
Deduction 3 = SUMX('Table 3','Table 3'[Deduction 3])*-1
Deduction 4 = SUMX('Table 3','Table 3'[Deduction 4])*-1
 
Balance = [MonthlyNew]+[Deduction 1]+[Deduction 2]+[Deduction 3]+[Deduction 4]
OpeningBalance = CALCULATE(SUMX(VALUES(MonthTable[Month]),
 
[Balance]),FILTER(ALLSELECTED(MonthTable),MonthTable[Month]<=EOMONTH(MAX(MonthTable[Month]),-1)))
 
Closingbalance = CALCULATE([Balance],FILTER(ALLSELECTED(MonthTable),MonthTable[Month]<=MAX(MonthTable[Month])))
 
Opening Balance + Monthly new = [OpeningBalance]+[MonthlyNew]
 
Measure 1 = [Opening Balance + Monthly new]/10
Measure 2 = ([Measure 1]*25000)/12
Measure 3 = [Measure 2]*0.06
 

 

Here is my pbix : https://ulozto.cz/tamhle/09aKv8imMdia/name/Nahrano-17-2-2021-v-16-26-19

 

 

Measure out of opening balance aren't additive.JPG

 

Many thanks in advance.

 

Kind regards.

 

Andrej

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @AndrejZitnay 

Try to build three new measures as below.

New_Measure1 = SUMX(MonthTable,[Measure 1])
New_Measure2 = SUMX(MonthTable,[Measure 2])
New_Measure3 = SUMX(MonthTable,[Measure 3])

Result is as below.

1.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

 

View solution in original post

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @AndrejZitnay 

Try to build three new measures as below.

New_Measure1 = SUMX(MonthTable,[Measure 1])
New_Measure2 = SUMX(MonthTable,[Measure 2])
New_Measure3 = SUMX(MonthTable,[Measure 3])

Result is as below.

1.png

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

 

Hello @v-rzhou-msft ,

Thank you very much!!!!

Andrej

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!

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.