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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
jvandore
Frequent Visitor

Need to have a rolling count by month

Hello, I am grateful for ideas/assistance. 

Here is my data

PersonDateColorShade
11/01/2017BlueDark
13/03/2017BluePale
15/05/2017RedNone
11/01/2018BlueDark
14/04/2018GreenNone
    
22/02/2017BluePale
26/06/2017BlueDark
210/10/2017BluePale
21/01/2018RedPale

 

Persons can be Blue, Red or Green. If they are blue, they may be dark blue or pale blue. 

Persons can change over time. In the above example, person 1 starts out as dark blue, changes to pale blue after a few months, then isn't blue for a few months and then is dark blue again. 

 

I need a chart that looks like this

 

2019-04-26_13-00-43.jpg

 

(I don't need the numbers of the persons in the boxes, I just put those there for clarity.)

I need, for each month, to know how many persons are dark blue and how many are pale blue. 

From our above example, even though there are no rows in the data that explicity refer to 2017-04, we have two pale blue people in 2017-04, because they haven't changed from March 2017 or February 2017 respectively. 

 

What is the best way in PowerBI to do this sort of chart? Should I make a table in PowerQuery with a row for each month and then do selects to fill in the data in that generated data? 

Or is there a function in PowerBI that does this sort of thing? 

 

any help will be greatly appreciated. 

1 ACCEPTED SOLUTION
jvandore
Frequent Visitor
2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Smiley Happy

 

Best Regards
Maggie

jvandore
Frequent Visitor

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.