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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Total of a calculated field values

Hello,

 

Maybe a simple request but I can't manage to find a way to do a total of values I have in my power BI table.

The 4th column on the right below is a result of a formula, I got the value I am looking for for each line but when it comes to total, the formula gives me a result at a global level without taking into consideration the weight of each line.

 

I'm just looking to have the sum of each line as a total. In this case, I'm looking for a total at - 7 517.  Is somebody can help me ?

powerbi.png

 

Many thanks,

Arnaud

3 REPLIES 3
Datatouille
Solution Sage
Solution Sage

Hi Arnaud,

 

Would you please give us more detail about the formula you used to compute the savings ?

Apparently, it is not fully-additive and it must rely on a Continent context to compute the correct calculation !

 

Sinon, n'hésite pas à checker notre User groupe français sur Power BI: https://www.meetup.com/fr-FR/Club-Power-BI/ !

Anonymous
Not applicable

Hello,

 

Thank you for your answer.

 

The formula I used is :

 

(calculate   (sum('Database v2'[Amount full])   /   sum('Database v2'[Ticket count ])   ;   'Database v2'[Ticket Advance Booking Group 1]="04 to 06 days")

-

calculate    (sum('Database v2'[Amount full])   /    sum('Database v2'[Ticket count ])   ;   'Database v2'[Ticket Advance Booking Group 1]="00 to 03 days"))

*

(0,3   *   calculate     (sum('Database v2'[Ticket count ])     ;     'Database v2'[Ticket Advance Booking Group 1]="00 to 03 days"))

 

 

exemple.png

 

Hope it's readable.

 

Many thanks,

Arnaud 

Hi @Anonymous,

 

For 'Savings from shift to 4 to 6 days', rather than creating a measure, is it possible to create a calculated column using the same formula? If add a calculated column into visual, the total row will sum up the values above it by default.

 

Regards,
Yuliana Gu

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors