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
Datalover22
Frequent Visitor

Running total

Hi to the best community ,

Can someone help me with creating a measure or calculated column to get the sum of the running total of the assets per month ? 
I attached 2 screenshots

Thank you !!s1.PNGs2.PNG

1 ACCEPTED SOLUTION

Hi @Datalover22 ,

 

Which visual do you want to put this Measure in and is there any other external filter?

Please try this measure.

Total =
CALCULATE (
    SUM ( 'Table'[Net Amount in USD] ),
    'Calendar'[Date] <= EOMONTH ( TODAY (), 0 )
)

vcgaomsft_0-1661329216908.png

Please check the pbix file.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

6 REPLIES 6
mh2587
Super User
Super User

Assets YTD :=
CALCULATE (
    SUM(TableName[Assets]),
    DATESYTD( 'Date'[Date] )
)

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Thank you! But Its not working

Assets RT :=
VAR MaxDate = MAX ( 'Date'[Date] ) 
RETURN
    CALCULATE (
        SUM(TableName[Assets]),          
        'Date'[Date] <= MaxDate,  
        ALL ( Date )              
    )

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Hi
You want the running total for a single or for the 12 months ( Year)

 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Hi , thanks for your help! I want the recurring total per month until the current month

Hi @Datalover22 ,

 

Which visual do you want to put this Measure in and is there any other external filter?

Please try this measure.

Total =
CALCULATE (
    SUM ( 'Table'[Net Amount in USD] ),
    'Calendar'[Date] <= EOMONTH ( TODAY (), 0 )
)

vcgaomsft_0-1661329216908.png

Please check the pbix file.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

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.