cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
annaY
Regular Visitor

How to create a stacked bar chart with rolling totals by quarter

Hello all,

 

I have three columns of categories (with associated dates) that I would like to get a count of, by quarter, and then make a stacked bar chart.

 

The data looks like below:

 

Date          Embedded     Applicable     SentOut

1/12/18     Yes                  No                 Yes

1/15/18      Yes                 Yes                 Yes

.

.

.

3/23/19     No                  No                 No

 

I would like to make a stacked bar  that would have the quarters of each year on the x-axis and a bar that shows how many 'yes' occurred in each category (embedded, applicable, sent out) for each of the quarters.

 

I have already made a column that corresponds to the quarter of the year, but am at a bit of a loss on how to proceed. Some hints would be very very much appreciated!

 

 

1 REPLY 1
Anonymous
Not applicable

@annaY  - You need a DAX Measure for each category like this:

Count Embedded Yes = COUNTROWS(FILTER(<YourTable>,<YourTable>[Embedded]="Yes"))

Then you can add all 3 Measures as Values in your chart.

 

Cheers!

Nathan

 

 

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors