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
sarah2_williams
Helper III
Helper III

Removing events that have not yet happened when using running total on a line graph

Hi all,

 

Have read a few post on the same topic but don't think they are working for my issue.. I have the below graph, I want the registered for 2024 to end at June, as the others are yet to happen.. I think where I'm struggling is that the events are not formatted as date, they are text values:

Graph1.JPG

 

 

using the below formula:

 
Registered 2024 running total in event =
CALCULATE(
    [Registered 2024],
    FILTER(
        ALLSELECTED('All Total and Region'[event]),
        ISONORAFTER('All Total and Region'[event], MAX('All Total and Region'[event]), DESC)
    )
)
 
Any idea how I can get the events that have not yet happend to not show?
 
many thanks
Sarah 🙂
2 ACCEPTED SOLUTIONS
rajendraongole1
Super User
Super User

Hi @sarah2_williams - you can try below measure as the events are there upto June.

Measure:

 

Registered 2024 running total in event =
VAR MaxEventDate = MAX('All Total and Region'[EventDate])
RETURN
CALCULATE(
[Registered 2024],
FILTER(
ALLSELECTED('All Total and Region'[EventDate]),
'All Total and Region'[EventDate] <= MaxEventDate &&
ISONORAFTER('All Total and Region'[EventDate], MaxEventDate, DESC)
)
)

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





View solution in original post

Anonymous
Not applicable

Hi @sarah2_williams ,

 

Thanks for the reply from @rajendraongole1 .

 

Please try:

 

Modify the date column in Text format to Date format in Power Query as shown below:

vhuijieymsft_0-1718937777010.png

vhuijieymsft_1-1718937777010.png

 

Using DAX or converting the format in Desktop will report an error.

vhuijieymsft_2-1718937802871.png

vhuijieymsft_3-1718937802873.png

 

Now, try this syntax:

Registered 2024 running total in event =
CALCULATE(
    [Registered 2024], [Registered 2024], [FILTER(
    FILTER(
        ALLSELECTED('All Total and Region'), ISONORAFTER('All Total and Region'[EventDate], MAX('All Total and Region'[EventDate]), DESC) 
        &&
        'All Total and Region'[EventDate] <= TODAY()
    )
)

 

If that doesn't succeed in helping you, I would be grateful if you could provide me with the pbix file or sample data.

 

Remember to remove sensitive data and do not log in to your account in Power BI Desktop when uploading the pbix file.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
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!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @sarah2_williams ,

 

Did rajendraongole1 and I's answers help you solve your problem?

 

If the answers helped you, please mark the answers as solutions. This will be of great help to other users who have similar problems as you.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
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!

Anonymous
Not applicable

Hi @sarah2_williams ,

 

Thanks for the reply from @rajendraongole1 .

 

Please try:

 

Modify the date column in Text format to Date format in Power Query as shown below:

vhuijieymsft_0-1718937777010.png

vhuijieymsft_1-1718937777010.png

 

Using DAX or converting the format in Desktop will report an error.

vhuijieymsft_2-1718937802871.png

vhuijieymsft_3-1718937802873.png

 

Now, try this syntax:

Registered 2024 running total in event =
CALCULATE(
    [Registered 2024], [Registered 2024], [FILTER(
    FILTER(
        ALLSELECTED('All Total and Region'), ISONORAFTER('All Total and Region'[EventDate], MAX('All Total and Region'[EventDate]), DESC) 
        &&
        'All Total and Region'[EventDate] <= TODAY()
    )
)

 

If that doesn't succeed in helping you, I would be grateful if you could provide me with the pbix file or sample data.

 

Remember to remove sensitive data and do not log in to your account in Power BI Desktop when uploading the pbix file.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
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!

rajendraongole1
Super User
Super User

Hi @sarah2_williams - you can try below measure as the events are there upto June.

Measure:

 

Registered 2024 running total in event =
VAR MaxEventDate = MAX('All Total and Region'[EventDate])
RETURN
CALCULATE(
[Registered 2024],
FILTER(
ALLSELECTED('All Total and Region'[EventDate]),
'All Total and Region'[EventDate] <= MaxEventDate &&
ISONORAFTER('All Total and Region'[EventDate], MaxEventDate, DESC)
)
)

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





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

Proud to be a Super User!





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