Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello everyone,
I have the next graph and i want to have on the cumul wasted time and cumulative claimed hours the sum of previous values.
for example: for the blue line i want to have 12 as value, not 5.
Any ideas how i can do that? I try with some filters and things but don't work.
Thank you in advance for help.
Br,
S.
Solved! Go to Solution.
Hi @stefan2297 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
Measure = SWITCH(TRUE(),
MAX('Table'[type]) in {"cumul wasted time per detection date","cumulative claimed hours"},CALCULATE(SUM('Table'[value]),FILTER(ALLSELECTED('Table'),'Table'[type]=MAX('Table'[type]) && 'Table'[date]<=MAX('Table'[date]))),
MAX('Table'[type])="running balance",MAX('Table'[value]))
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @stefan2297 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
Measure = SWITCH(TRUE(),
MAX('Table'[type]) in {"cumul wasted time per detection date","cumulative claimed hours"},CALCULATE(SUM('Table'[value]),FILTER(ALLSELECTED('Table'),'Table'[type]=MAX('Table'[type]) && 'Table'[date]<=MAX('Table'[date]))),
MAX('Table'[type])="running balance",MAX('Table'[value]))
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
79 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |