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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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