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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Jeff_Huber_1967
Frequent Visitor

Matrix Help

I have two measures that are working great, see below. The problem is that I am using a matrix to display the data, that part works. What doesn't work is the row total in the matrix. The row total is only showing the total for the months of October and November. I need the row total to show the total for all 12 months. Please help.

 

 

 

Get Max Report Date = MONTH(max('Merged Balance Data'[Report Date]))

 

FY24 Receipts Scenario 1 =
SWITCH('Prod Rev Summary'[Get Max Report Date],
1,'Prod Rev Summary'[FY19 Receipts],
2,'Prod Rev Summary'[FY19 Receipts],
3,'Prod Rev Summary'[FY19 Receipts],
4,'Prod Rev Summary'[FY19 Receipts],
5,'Prod Rev Summary'[FY19 Receipts],
6,'Prod Rev Summary'[FY19 Receipts],
7,'Prod Rev Summary'[FY19 Receipts],
8,'Prod Rev Summary'[FY19 Receipts],
9,'Prod Rev Summary'[FY19 Receipts],
10,'Prod Rev Summary'[FY24 Receipts],
11,'Prod Rev Summary'[FY24 Receipts],
12,'Prod Rev Summary'[FY19 Receipts]

)

 

1 REPLY 1
swikritee_p
Resolver II
Resolver II

Better have a month column and then try like 

FY24 Receipts Scenario 1 =
Sumx(values('Merged Balance Data'[Report Month]),
SWITCH(Max('Prod Rev Summary'[Report Month]),
1,'Prod Rev Summary'[FY19 Receipts],
2,'Prod Rev Summary'[FY19 Receipts],
3,'Prod Rev Summary'[FY19 Receipts],
4,'Prod Rev Summary'[FY19 Receipts],
5,'Prod Rev Summary'[FY19 Receipts],
6,'Prod Rev Summary'[FY19 Receipts],
7,'Prod Rev Summary'[FY19 Receipts],
8,'Prod Rev Summary'[FY19 Receipts],
9,'Prod Rev Summary'[FY19 Receipts],
10,'Prod Rev Summary'[FY24 Receipts],
11,'Prod Rev Summary'[FY24 Receipts],
12,'Prod Rev Summary'[FY19 Receipts]

 

))

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.