Forum Discussion
saddas
4 years agoFrequent 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...
- 4 years ago
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:
saddas
4 years agoFrequent 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")