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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Aucesar
Helper III
Helper III

Dax to aggregate cash flow

Hi Community

 

I had a DAX expression and I do visual filter for this week and next week working as expected in a line chart showing what is happening in my cash flow.

 

Now I need to use it for filtered dates, but it isn´t working as expected, let´s supose: If I filter April using slicer I need the line starting to show the results from April 1st then sum the results for April 2nd and so on.

 

My actual dax is below, thanks for any help.

CashFlowAggregate =
CALCULATE(
    [Sum-Incoming-Expenses],
    FILTER(
        ALLSELECTED('Calenda'[Date]),
        ISONORAFTER('Calendar'[Date], MAX('Calendar'[Date]), DESC)
    )


)
1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Aucesar Better Running Total - Microsoft Fabric Community


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@Aucesar Better Running Total - Microsoft Fabric Community


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler first of all, nice youtube channel name haha!
I got the idea behind your example, and make it works! Thanks!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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