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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Millser
New Member

Running total for power Bi

Hi,

I have a table which contans a bunch of values that correspond to behaviours (Green = 1, Yellow = 0.25, Orange = 0, Absent = 0 suspended = Clear all points and Warning = halve the points) and a table that hold the behaviours assigned to a student and also contains their daily final behaviour.

 

I was wondering how I would format a query that would calculate the running total for each daily behaviour.

1 ACCEPTED SOLUTION

Hi @Millser,

 

If the value is 'clear', what the calculation logic of your expected output?

You can try measure as:

IF(
   max'table'[value]="Clear",
   [logic of 'clear']
   [logic of running total]
)

If you still have some question, please provide the sample data and expected output.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The expected result that that beside the name of the student would be their behaviour and running total. However I cannot seem to calculte this running total becasue one of my values is called "clear" and it is not numeric, I am unsure how to express this as a numeric value in order to calculate it.

Hi @Millser,

 

If the value is 'clear', what the calculation logic of your expected output?

You can try measure as:

IF(
   max'table'[value]="Clear",
   [logic of 'clear']
   [logic of running total]
)

If you still have some question, please provide the sample data and expected output.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Hi,

Please show the raw data and the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Migasuke
Super User
Super User

Hi @Millser ,
If I understand well, you need to have running total for your Behaviours (categories) and do the running calculation on date?
If yes, try similar approach I have here. Category would be your Behavior and Value your Points:

Migasuke_0-1627334323644.png

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

Do you know how I could express the value "Clear" as a numeric value? With it in it's current state the formular doesn work.

Hi @Millser ,
you need to either replace "Clear" with some numeric value in Power Query or maybe create a conditional column, where you definy numberic value for "Clear" and maybe other categories.

As Ashish sugested , it would be nice to show some data sample with required output.



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.