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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
EdgarasR1
Frequent Visitor

Same amount of Total line

Hi,

 

I have problem with total line.

Maybe you have solution why in this table are the same total sum?

 

There is just one line where is different amount.

 

And somehow I get still the same total.

 

Measure4 formula = 

IF([Fact Amount]>[Plan Amount];0;'Planas vs Faktas'[Plan-Fact])
 

 

Capture.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks for solutions!

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

Hi @EdgarasR1 ,

 

You could try the following DAX:

Measure 4 =
SUMX (
    'Planas vs Faktas';
    IF ( [Fact Amount] > [Plan Amount]; 0; 'Planas vs Faktas'[Plan-Fact] )
)

Here is my test result.

2-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

7 REPLIES 7
v-eachen-msft
Community Support
Community Support

Hi @EdgarasR1 ,

 

You could try the following DAX:

Measure 4 =
SUMX (
    'Planas vs Faktas';
    IF ( [Fact Amount] > [Plan Amount]; 0; 'Planas vs Faktas'[Plan-Fact] )
)

Here is my test result.

2-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Hi @EdgarasR1 ,

In your measure you've replaced the Fact_Amount as zero for Fact_amount less than zero.
Please share the same data to fix this.

Measure4 formula = 

IF([Fact Amount]>[Plan Amount];0;'Planas vs Faktas'[Plan-Fact])

Best Regards,
Mail2inba4

Hi,

 

Thats my table, and I add data.csv file.  Data.csv 

In excel are correct totals.

Capture.JPG

 

 

Anonymous
Not applicable

Hi @EdgarasR1 ,

Here fact amount is greater than Plan amount, as per your measure it returns zero.
Please let me know the what is your expected output.

Best Regards,
Mail2inba4

Yep, it brings zero. But why total line doesnt change?

 

Plan-Fact measure's total is 345661.61

So Measure4 total have to be 347825.72 because when Fact is bigger than Plan its have to be 0.

So instead of -2164.11 is 0

345661.61-(-2164.11)=347825.72

 

But its still shows the same total like Plan-Fact

 

 

 

 

Tahreem24
Super User
Super User

Hi @EdgarasR1 ,

 

if possible so can you please share the screen shot of your Fact Amount and Plan Amount fields as well.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

HI @EdgarasR1 ,

 

As per your Data your Fact Amount is greater than Plan Amount that's why you are getting Zero as per your condition applied in Measure. If possible so can you please share your actual requirement.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors