cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper II

## How to get the total amount before start date in a slicer?

Hi,

I have a date slicer which is between dates. Currently the slicer is returning the amount between the to dates, which is fine for one column. However I would like to create a seperate column that calcuates the total amount from the start date of the slicer. Is this possible to do?

I have a date slicer which is connected to a Leave table:

The leave table has the transaction date & the accrual amount.

Thank you

1 ACCEPTED SOLUTION
Helper II

I was able to use this question in the forum https://community.powerbi.com/t5/Desktop/Calculate-Opening-Balance-of-Selected-Range/m-p/347777#M156...

Thank you for helping out.

3 REPLIES 3
Super User

@DynamicsHS Maybe:

``````Measure =
VAR __MinDate = MIN('Dates'[Date])
VAR __Table = FILTER(ALL('Leave',[Date] < __MinDate)
RETURN
SUMX(__Table,[Accrual])``````

Become an expert!: Enterprise DNA
External Tools: MSHGQM
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Helper II

I was able to use this question in the forum https://community.powerbi.com/t5/Desktop/Calculate-Opening-Balance-of-Selected-Range/m-p/347777#M156...

Thank you for helping out.

Helper II

I just struggling with the formula...

So I have the date table

And leavebanktransaction table which holds:

Transaction date  & Amount ....

Have I placed to correct values in the right space?

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.