Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am running out of ideas here, can you please help me with the below.
if you notice below i want to show the running total for no cases opened based on inception date for each year.
but here is the catch. year(inceptiondate)<> year(resolution date) and also we shoud check if there is any case opened previous year and got closed in the selected year.
for example in line chart, 2014 has 3 resolution dates in the left table it means, all those 3 are not valid. we should see only 1 for 2014 in line chart, that one record belongs to 2012. same count i need to get for all years as a running total. how to achieve this?
MatterID | InceptionDate | ResolutionDate |
20111128-685 | 11/28/2011 | 1/20/2014 |
20120905-684 | 9/5/2012 | 5/8/2023 |
20131001-683 | 10/1/2013 | 7/1/2014 |
20140101-682 | 1/1/2014 | 1/1/2014 |
20150401-681 | 4/1/2015 | 5/3/2022 |
@talespin @lbendlin @123abc @Jihwan_Kim @Greg_Deckler @amitchandak
Solved! Go to Solution.
hi @johnbasha33
My Apology, but I am not sure if I have understood your requirement correctly.
You want running total(Count) until you see a case closure(Created year = closed year), if that happens you want to reset running total(Count)?
Below Calculated Column will return count based on what I have stated above.
Hi @talespin it is little hard and complex as i mentioned before, how about we can have a quick call ...
Hi, @johnbasha33
Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!
Best Regards
Yongkang Hua
@Anonymous still dint have any solution for this, it is a complex scenario. so looking for any solutions.
Hi, @johnbasha33
Your original need, described by talespin in the 9th Reply has already solved your original need, please consider mark's scenario. The latter ones belong to the new requirements, and you can consider opening a new case.
Best Regards
Yongkang Hua
hi @johnbasha33
Sorry, I am unable to understand the requirement.
Understood
if you notice below i want to show the running total for no cases opened based on inception date for each year.
Please explain below in detail. What do you mean by case, closed, selected year?
Please share pbix file with mock data.
"but here is the catch. year(inceptiondate)<> year(resolution date) and also we shoud check if there is any case opened previous year and got closed in the selected year.
for example in line chart, 2014 has 3 resolution dates in the left table it means, all those 3 are not valid. we should see only 1 for 2014 in line chart, that one record belongs to 2012. same count i need to get for all years as a running total. how to achieve this?".
@talespin thanks for showing interest in this, attaching the pbix with more detailed explanation.
https://drive.google.com/file/d/1-6crHQAZAbiD3YEKynvjdny_wlL-HhJT/view?usp=sharing
@lbendlin @Jihwan_Kim @amitchandak
hi @johnbasha33
My Apology, but I am not sure if I have understood your requirement correctly.
You want running total(Count) until you see a case closure(Created year = closed year), if that happens you want to reset running total(Count)?
Below Calculated Column will return count based on what I have stated above.
Hi @talespin thank you so much for your valuable time in this for me. it was briliant. calculation seems to be right for begining. but when i added the whole data, calculation seems to be off starting from year 2017 suddenly the count dropped to 1. that seems to be wrong.
now we also have open cases.
can you please help me fix the logic for closed ones and finally we need to take the count of cases for open cases and club both count for each year.
really appreciate if you can share it, attaching the new file here.
https://drive.google.com/file/d/1-6crHQAZAbiD3YEKynvjdny_wlL-HhJT/view?usp=sharing
hi @johnbasha33
Please apply status filter.
@talespin requirement has changed now, earlier we are not counting year(created)=year(closed).
but now we need to count them as well.
here is the expected output. how can we alter the logic now?
Hi @talespin thanks for your valuable time. i am expecting count 2 for 2015 as we have only 2 cases active until 2015. we spend alot of time on this, i agree this is a trickier and complex one.really appreciate your vaulable time. you have very good understanding in DAX.
hi @johnbasha33
Please highlight/share screenshot where the issue is and explaining in detail what the issue is, assuming underlying data is same as in the sample pbix file which you shared earlier.
Hi @talespin thanks for helping, this seems to be complicated,
here is the latest pbix file with sample data.
https://drive.google.com/file/d/1-6crHQAZAbiD3YEKynvjdny_wlL-HhJT/view?usp=drive_link
this is what i am expecting to see the Dynamic cummulative count.
and finally this is what i am expecting to see in the grapth for each created year
i know it is a challenging one, lets hope we can crack this one last time.
hi @johnbasha33
I am not able to understand the requirement.
For row5 in your screenshot the count starts from 2.
For row8 YEAR(Created Date) = YEAR(Closed Date) but the count doesn't reset.
@talespin Hi, it doesnt have to reset. we are no longer considering YEAR(Created Date) = YEAR(Closed Date) this condition. even though there is YEAR(Created Date) = YEAR(Closed Date) we consider it in the active count.
YEAR(Closed Date) should be less than YEAR(Created Date) for the count.
@johnbasha33 Better Running Total - Microsoft Fabric Community
@Greg_Deckler its not a straight forward situation, pls read my question one more time.
@johnbasha33 Without sample data and expected output it's near impossible to be specific.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |