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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Elizz
Frequent Visitor

measure to calculate first value in matrix for another measure and applying a reduction to each week

Hi

 

Not sure how to explain what i need help with seems impossible... and i hope ive used the right forum 😉

 

im replicating a spreadsheet in powerbi, 

i have a table of dates (weekending)

a measure calculating the waitlist cohorts:

Sum52Cohort = if(ISBLANK(CALCULATE(sum(Fact_PTL[Total]),
filter(Fact_PTL,Fact_PTL[DSU_Stage]="New OP"  &&
Fact_PTL[52WeekCohort]="52+ Cohort"))),0,CALCULATE(sum(Fact_PTL[Total]),
filter(Fact_PTL,Fact_PTL[DSU_Stage]="New OP"  &&
Fact_PTL[52WeekCohort]="52+ Cohort")))

i need to add a linear reduction, this has been done by taking the first waitlist cohort figure, and minusing a reduction rate.

 

which i have done in a measure: (used the static starting figue as i didnt know how to get the first using DAX)

Reduction = 46862/(int(max(Dim_Date[WeekEndDate])-min(Dim_Date[WeekEndDate]))/7)
 

this then gives the next weeks figure, then again using this new figure minusing the reduction rate again and so forth to the end of the period to get to zero.

example; 

 

Elizz_0-1689846156927.png

 

Appreciate any help :):):)

thanks 

Liz

 

1 ACCEPTED SOLUTION
Elizz
Frequent Visitor

Hi

Ive manage to resolve this, through a few measures

thank you though.

View solution in original post

1 REPLY 1
Elizz
Frequent Visitor

Hi

Ive manage to resolve this, through a few measures

thank you though.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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