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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mithunt
Frequent Visitor

Help with cascade formula

Hello PowerBians, 

 

I am trying to achive open ticket calculation based on logic attached with this question,

However it is extremly difficult in Power BI, where as in Excel its just drag the formula.

 

Here is how the calculation I need

 

I have date, Created tickets, Resolved tickets and Open ticket(Latest Date)

Based on latest open tickets I am trying to reverse map the previous Open tickets

 

Yesterdays' open = Latest Open-Latest Created+Latest Resolved 

 

Even though entries below are dummy but the ones marked in yellow are entries which I get and the rest should be calculated as per logic above

 

mithunt_0-1755694330338.png

 

 

This logic should be moved up, so that I get open tickets for any given date.

 

Requesting your expertise. 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @mithunt 

 

Given the logic provided, 8/21 shoud return 219 (220-43+44) but yours is 221. Following the same logic, this calc column should work.

Open2 = 
VAR _currentDate = Data[Date]
VAR _open =
    SUM ( Data[Open] ) --assuming there's only one open date data
VAR created_resolved =
    SUMX (
        FILTER ( Data, Data[Date] > _currentDate ),
        - Data[Created] + Data[Resolved]
    )
RETURN
    _open + created_resolved

danextian_0-1755696331064.png

As a measure

Open measure = 
VAR _open =
    SUMX ( ALL ( Data[Date] ), CALCULATE ( SUM ( Data[Open] ) ) ) --assuming there's only one open date data
VAR _currentDate =
    MAX ( Data[Date] )
VAR created_resolved =
    SUMX (
        FILTER ( ALL ( Data ), Data[Date] > _currentDate ),
        - Data[Created] + Data[Resolved]
    )
RETURN
    _open + created_resolved

danextian_1-1755696667234.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

5 REPLIES 5
v-saisrao-msft
Community Support
Community Support

Hi @mithunt,

We haven’t heard back from you in a while regarding your issue. let us know if your issue has been resolved or if you still require support.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @mithunt,

Checking in to see if your issue has been resolved. let us know if you still need any assistance.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @mithunt,

Have you had a chance to review the solution we shared by @danextian @Greg_Deckler ? If the issue persists, feel free to reply so we can help further.

 

Thank you

danextian
Super User
Super User

Hi @mithunt 

 

Given the logic provided, 8/21 shoud return 219 (220-43+44) but yours is 221. Following the same logic, this calc column should work.

Open2 = 
VAR _currentDate = Data[Date]
VAR _open =
    SUM ( Data[Open] ) --assuming there's only one open date data
VAR created_resolved =
    SUMX (
        FILTER ( Data, Data[Date] > _currentDate ),
        - Data[Created] + Data[Resolved]
    )
RETURN
    _open + created_resolved

danextian_0-1755696331064.png

As a measure

Open measure = 
VAR _open =
    SUMX ( ALL ( Data[Date] ), CALCULATE ( SUM ( Data[Open] ) ) ) --assuming there's only one open date data
VAR _currentDate =
    MAX ( Data[Date] )
VAR created_resolved =
    SUMX (
        FILTER ( ALL ( Data ), Data[Date] > _currentDate ),
        - Data[Created] + Data[Resolved]
    )
RETURN
    _open + created_resolved

danextian_1-1755696667234.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Greg_Deckler
Community Champion
Community Champion

@mithunt Sounds like you want Open Tickets: Open Tickets - 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors