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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ZaneCoetzee
New Member

Cumulative adding of a static number

Hi All

Trust you are all well

I'm hoping someone can guide me to a solution.

I have added a static number, 71. I need to add  this number over 22 working days. So day 1 =71, Day 2 = 141 and so forth.......
Sample Data in table below:

Working Day123456789101112131415
Business Plan opportunities (Cumulative)         71       141       212       282       353       423       494       564       635       705       776       847       917       988   1,058


I have tried the following DAX expression:

Tot. Business Plan Opportunities =
VAR workday = MIN(Workingdays[Working_Day_Number])
RETURN
Calculate(
[Business Plan Opportunites per workday],All(Workingdays[Working_Day_Number]) ,
Workingdays[Working_Day_Number] <= workday
)

But I am still recieving the the value of 71 on every workday.

I am in need of the community's wisdom 🙂

Many Thanks 

Zane




1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@ZaneCoetzee Try:

Tot. Business Plan Opportunities =
VAR workday = MIN(Workingdays[Working_Day_Number])
VAR __Result = workday * 71
RETURN
__Result

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@ZaneCoetzee Try:

Tot. Business Plan Opportunities =
VAR workday = MIN(Workingdays[Working_Day_Number])
VAR __Result = workday * 71
RETURN
__Result

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg

Solution worked. thank you for the assistance. Greatly appreciated

Kind Regards 

Zane

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.