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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
NishPatel
Resolver II
Resolver II

Yearly Total in a Column

I have a requirement where I need to use SUM of yearly numbers in a calculation against each row within a year. I am new to this community and not sure if I am able to explain it properly or not. Fiscal Year and Fiscal Month are the two rows in the matrix. Thank You in advance.

NishPatel_0-1615475363463.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@NishPatel , Try one of the two measures with Rate measure

 

calculate([Rate], allexcept(Table, Table[Year]))

 

or

 

calculate([Rate], filter(allselected(Table), Table[Year] = max(Table[Year])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@NishPatel , Try one of the two measures with Rate measure

 

calculate([Rate], allexcept(Table, Table[Year]))

 

or

 

calculate([Rate], filter(allselected(Table), Table[Year] = max(Table[Year])))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Amit, If i use this measure in another matrix, the result is not right. So the file I data I shared earlier had Hours by Month. But if i add one more level below (Row under Month), Employee then the number are changed. How can i make this numbers not to change? Thanks again in Advance.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors