cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
saddas
Frequent Visitor

How to Create a Chart from a Subtotal Column in a Matrix Visual

As shown below, I have a table (Table 1) in long format with three columns: Period (from 1 to 3), FS_Item (Revenue, COGS, OPEX, Assets), and Amount (numerical). From that table, I can create a Matrix visual (similar to second image below) that filters out one value from FS_Item (Asset) and sums up the remaining three values to come up with a Total column (Revenue - COGS - OPEX). 

I would like to create a Chart that plots Period and Total (the yellow highlighted columns). I assume that I would first need to create a table that is identical to my Matrix visual. 

Any help would be greatly appreciated. Thanks.

 

.Screenshot1Screenshot1

 

Screenshot2Screenshot2

1 ACCEPTED SOLUTION
themistoklis
Super User
Super User

@saddas 

 

Simply create a new measure with the following formula:

Amount New = CALCULATE(SUM(Sheet1[Amount]), FILTER(Sheet1, Sheet1[FS_Item] IN {"Revenue", "COGS", "OPEX"}))

 

And then create the table orgraph based on Period and Amount New fields

 

See attached file:

View solution in original post

2 REPLIES 2
saddas
Frequent Visitor

Great, thanks very much. I had figured out a longer formula (see below), but yours is much more efficient.

Long version of formula:

Amount New = CALCULATE(SUM(Sheet1[Amount]),Sheet1[FS_Item]="Revenue") + CALCULATE(SUM(Sheet1[Amount]),Sheet1[FS_Item]="COGS") + CALCULATE(SUM(Sheet1[Amount]),Sheet1[FS_Item]="OPEX")

themistoklis
Super User
Super User

@saddas 

 

Simply create a new measure with the following formula:

Amount New = CALCULATE(SUM(Sheet1[Amount]), FILTER(Sheet1, Sheet1[FS_Item] IN {"Revenue", "COGS", "OPEX"}))

 

And then create the table orgraph based on Period and Amount New fields

 

See attached file:

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

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