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
Stefano98
Frequent Visitor

Incremental sum where on X axis there aren't date

Hello Everybody,

I have this situation where I have calculated the incremental points, using this formula:

Incremental point =CALCULATE(SUM('2019 - race'[Points]),
                                             KEEPFILTERS('2019 - race'[Data gara] <= MAX ( '2019 - race'[Data gara] )))
But now if I try to use this formula in a chart where on x-axis there are the tracks, it doesnt'work.
How should I change that formula in order to have the incremental points during the progress of races in the chart?
 
Thank you in advance
Stefano

Stefano98_0-1703627043826.png  

Stefano98_1-1703627246482.png

 

 

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result in a Table format.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This is what i want to achieve, but as you can see on x - axis there are the dates, while i would like to have the tracks. Because with dates the incremental points formula works, but if i try to put the tracks, it doesnt work, that why I'm asking for. 

I would like to add the excel with data but i don't know how to attach here

Stefano98_0-1703676552729.png

 

Upload the file to Google Drive and share the download link.  If possible, please ensure that column headings are in English.  Furthermore, show the expected result in a Table format.  From there, you will be able to create your desired visual.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
aj1973
Community Champion
Community Champion

Hi @Stefano98 

To calculate a running total(Incremental point) you need to add a Date_Table to your model. Join it to Data gara column, Then your measure should look some thing like this

Incremental point =
CALCULATE(
    SUM('2019 - race'[Points]),
    FILTER(
        ALLSELECTED('Date Table'[Date]),
        ISONORAFTER('Date Table'[Date], MAX('Date Table'[Date]), DESC)
    )
)
 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Thank you for the answer but it is not what I wanted. My problem is to have on x axis all the tracks, ordered by date, and create a meausre able to calculate for the selected driver the incremental points. My measure works if on x axis there dates, but not with tracks (you can see screenshoot in the other answer)

Helpful resources

Announcements
Europe Fabric Conference

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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