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! Learn more

Reply
Anonymous
Not applicable

How to calculate the total Open tickets per day

Hi Team,

I have requirement like

Date                          Opend measure                     Closed measure                                Open measure

6/12/2020                  10                                                     7                                                    3

6/13/2020                   15                                                     8                                                  10

6/14/ 2020                  5                                                      5                                                   10

6/15/2020                 20                                                      26                                                  9

how to Achive the above  open measure throurgh dax (open measure = previous day open+ today opend-Closed) 

 

i have opend measure and closed measure like

 

Date                    opened Measure                           Closed Measure

6/12/2020               10                                               7

6/13/2020               15                                                8

6/14/2020                5                                                5

6/15/2020              20                                             26

 

Can any one help me 

 

 

 

 

 

1 ACCEPTED SOLUTION

Assuming you have your first 3 columns in your data, here is an expression that will work

 

Open =
VAR __thisdate =
MAX ( Table[Date] )
RETURN
CALCULATE (
SUMX ( Table, Table[Opened] - Table[Closed] ),
ALL ( Table ),
Table[Date] <= __thisdate
)

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@Anonymous , refer this blog on similar topics

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit

 

That link is not releavent for my requirement .

I have a meausre called opened and closed measures. but i need to calculate the total opening tickets for the day.

 

can you please help me on this

 

 

Thanks!!

Nagaraju

tex628
Community Champion
Community Champion

 

Total open tickets = 
VAR maxDate = MAX(Calendar[Date])
Return
Calculate([Open] - [Closed];ALLSELECTED(calendar);Calendar[Date]<=maxDate)

 


Connect on LinkedIn
Anonymous
Not applicable

Hi tex68

Thanks!! For the replay

But the given formula or measure is not working properly

 

Thanks!!

Nagaraju

tex628
Community Champion
Community Champion

You have to provide more information. Images or more specifics regarding the outcome and the intended outcome. 

/J


Connect on LinkedIn
Anonymous
Not applicable

Hi tex68

 

Thanks for the quick replay

i am attaching the screenshot for your refrence. In that need to find the Open measures and requriment is mentioned in the note feild.

 

Image.PNG

 

Thanks!!

Nagaraju.G 

Assuming you have your first 3 columns in your data, here is an expression that will work

 

Open =
VAR __thisdate =
MAX ( Table[Date] )
RETURN
CALCULATE (
SUMX ( Table, Table[Opened] - Table[Closed] ),
ALL ( Table ),
Table[Date] <= __thisdate
)

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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