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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
paololito
Helper I
Helper I

cumul of value in Matrix

Hello community,

I'm looking to do a dax calculation in my matrix  but unfortunately I dind't find the way to achieve this .

 

what I have  :

paololito_1-1657100228720.png

what I would like 

 

G/L #201220132014201520162017201820192020202120222023
1310001.100.0001.100.0001.100.0001.150.0001.300.0001.300.0001.400.0001.500.0001.800.0002.100.0002.100.0002.100.000

 

can you please help me on this request ?

 

Thanks a lot 

 

paololito

 

8 REPLIES 8
paololito
Helper I
Helper I

Hello ,

Unfortunatelly, I don't find the way to achieve the solution proposed .

I want to fill the empty cell with the last non-empty value .

Can you please ask again your support on this matter .

 All fields related to this matrix are on the same table ( column , row , value) 

paololito_0-1660133851491.png

Thanks in Advance

 

paololito

paololito
Helper I
Helper I

The solution proposed bu @arichard19  seems be a good starting point but how I can also fill the blank value ?
 
 
Running General Ledger Amount =
CALCULATESUM('General Ledger Entries'[Amount]), FILTERALL(Calender[Date]), Calender[Date] <= MAX((Calender[Date])))) 
paololito_0-1657113350958.png

 

does anyone have a solution ?
Thanks a lot for your help !

If I recreate the scenario shown above, the DAX measure I suggested fills the blank values as well within my own Power BI files.

You may want to reevaluate the structure of your Calendar Table and the relationships built between your General Ledgers and the Calendar Table. 

Also, make sure you have time intelligence active in your file

tamerj1
Super User
Super User

HI @paololito 
The year column from which table? What is the name of the column used in the values of the matrix? From which table? G/L# from which table. Any relationships?

Hi @tamerj1 , thanks for your fast reply .

The year column from which table?    FactEntry[FinYear] is calculated column based on a posting date

What is the name of the column used in the values of the matrix?   

Row : G/L # of the Table DimAccount

Column : Fin Year (calculated column)  of the Table FactEntry

Value = Amount of the table Factentry

arichard19
Resolver I
Resolver I

If you are hoping to calaculate the running cumulative total of your balance sheet from you General Ledgers something like this would be helpful -

Running General Ledger Amount =
CALCULATE( SUM('General Ledger Entries'[Amount]), FILTER( ALL(Calender[Date]), Calender[Date] <= MAX((Calender[Date])))) 

You will need a calendar within your data model - https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions

Hi @arichard19 

 

your solution is working but the   blank   need to be filled also  ( see  screenshot below)

 

paololito_0-1657102822709.png

 

Hi, @paololito 

You need to create a separate calendar table for the field "Year" on the matrix column, and then create the measure based on the new field "Year" in separate calendar table and the original Row field in the fact table.

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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