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
oseasgomes
New Member

Cumulative count Statuses week by week

Hi Team

 

  I am struggling to create a visualization for my table.  I have a table (sample below) with historical statuses changes per ticket:

oseasgomes_0-1659619148974.png

 

from my sample data:

week_start_date = Monday

up_to = Sunday.  So for the week_start_date I should show counts till up_to

I need to create a summary table like that:

oseasgomes_1-1659619234397.png

 

I can have multiple statues for the same ticket per week, but I just want to show the latest status till the up_to column.

I should show cumulative counts for all statuses, except "Done" that I need to show only the counts for last week

 

Any magical DAX for that?

 

Samples data are available here: 

https://drive.google.com/drive/folders/1qE9kTJL_UW-ubNT2p76eDDK_LqugDNjf?usp=sharing

 

Thanks in advance

 

 

2 REPLIES 2
oseasgomes
New Member

Hi @amitchandak , Thanks for bringing attention to my problem. Based on your suggestion, I did some tests and I was able to find a solution (from this video: https://www.youtube.com/watch?v=hidJ5T_DYQ0&t=9s) that helped me to summarize my table.

 

Now, I have just one line per ticket with latest status by week (exactly what I was expecting):

oseasgomes_0-1659704534170.png

 

 

What I need to do now is my summary table. Should be like this one below based on the above snipt:

oseasgomes_1-1659704534173.png

 

Noted, ticket TIN-13361 was in Waiting status for the week of 06/06/22, but the next week (6/13/22) this ticket moved to a new status (Done) and my summary is no longer showing this ticket as Waiting but Done.

 

Basically speaking, for every week I want to see a full picture of the various tickets up to last week. I mean, my data has tickets since 01/01/19 so the weeks should show de data like that:

 

Week

show data for

6/20/2022

>=01/01/19 and <=06/20/22

6/13/2022

>=01/01/19 and <=06/12/22

6/6/2022

>=01/01/19 and <=06/05/22

5/30/2022

>=01/01/19 and <=05/29/22

 

amitchandak
Super User
Super User

@oseasgomes , Not very clear. But create this column and try to use that as the filter

 

if( [Event_timestamp] =

maxx(filter(Table, [Ticket] =earlier([Ticket]) && [week Start Date] = earlier([week start Date]) ), [Event_timestamp]) , 1, blank())

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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.