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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Cumulative actuals showing for future dates

Hi All, 

 

Is there a way i can make my chart not show values for future dates? I want to add a line graph to the chart to show the Total Pipeline (which will just be a sum of Proposals + Delayed) and i want the line to show a forecast for future values too. However, i don't want the actual bars itself to populate for future dates. 

 

I've attached link to google drive with PBIX. Any help is appreciated. Thank you! 

 

Proposal PBIX 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

Cumulative Delays =
VAR A =
    CALCULATE (
        COUNTROWS ( FILTER ( 'Sheet1', 'Sheet1'[Status] = "Delayed" ) ),
        FILTER ( ALL ( DimDate[Date] ), 'DimDate'[Date] <= MAX ( DimDate[Date] ) )
    )
VAR ProposalSubmissionDates =
    VALUES ( Sheet1[ProposalSubmissionDate] )
RETURN
    IF ( MAX ( DimDate[Date] ) IN ProposalSubmissionDates, A )

delays.JPG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , Try if these example measures can help

 

Cumm Sales =
var _max = maxx(allselected(Sales), 'Date'[Date]) // or //maxx(allselected(Sales), Sales[Sales Date])
return
CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date]) && date[Date] =_max))


Cumm Sales =
var _max = maxx(allselected(Sales), 'Date'[Date]) // or //maxx(allselected(Sales), Sales[Sales Date])
return
CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(Sales),Sales[Sales Date] <=max(Sales[Sales Date]) && date[Date] =_max))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hi Amit, 

 

Thanks for that. Unfortunately, that didn't seem to work 😞 

@Anonymous , please find the attached file after signature

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hi Amit, 

 

Thanks for that. Is there a way i can make the x-axis only show the dates listed under ProposalSubmissionDate rather than sequentially till the max Proposal date?

 

When i change the formula to take in the ProposalDate instead of DimDate, the stacked bar chart becomes just a normal bar chart. 

 

Thanks in advance

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

Cumulative Delays =
VAR A =
    CALCULATE (
        COUNTROWS ( FILTER ( 'Sheet1', 'Sheet1'[Status] = "Delayed" ) ),
        FILTER ( ALL ( DimDate[Date] ), 'DimDate'[Date] <= MAX ( DimDate[Date] ) )
    )
VAR ProposalSubmissionDates =
    VALUES ( Sheet1[ProposalSubmissionDate] )
RETURN
    IF ( MAX ( DimDate[Date] ) IN ProposalSubmissionDates, A )

delays.JPG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.