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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AneZ
New Member

Accumulative measure over weekno with historical data

I have made a measure that accumulates over week_number:

 

acc actual 2018 = calculate(sum('actuals 2017[2018 Actuals]);
Filter(Allselcted(Actuals 2017); Actuals 2017[weekno] <= max(Actuals 2017[weekno])))

but when i plot the measure with weekno i get a plateau that I dont want, since it is still some weeks without data for 2018. I want the graph to stop at week 49, so that i instead of have a plateau can ha a prediction for what's left of the year.

I tried to make a measure that returns blank when the weekno we are currently in are higher than the weekno i am trying to accumulate. 

 

chec = IF( CALCULATE ( MAX ( Actuals 2017[weekno]); ALL(Actuals 2017[weekno])) < WEEKNUM(TODAY()) ; [acc actual 2018] ; BLANK())

But when i do this the measure refuses to be plotted with weekno. I can't see anything..

 

Can someone help?? 🙂

 

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @AneZ,

 

I'd like some sample data to help us clear your table structure and test to coding formula.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help 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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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