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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors