cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
AU555
Helper I
Helper I

Fixed measure across empty rows

Hi all,

my problem has probably very easy solution, but as I am not too experienced I simply cannot figure it out. I have a task to calculate predicted expenses for the next years, so far only the actual expenses for 2019 are known. Then for years 2019, 2020 and 2021 we have exected expenses. The preducted expenses should be simply calculated as: 

 

predicted expnses = expected expenses * rate

 

rate = actual expenses / expected expenses

 

 

This is a sample of how it currently looks like: the rate is of course calculated only in year 2019, since that is the only year we know the actual expenses. Thus, the prediction for years 2020 and 2021 also stays empty, as rate is emplty. But I would like to make the measure rate fixed, so it is in all the rows and thus based on that calculate the prediction. 

AU555_0-1606397702160.png

 

so then final table would look like this: 

AU555_1-1606397947230.png

 

Can somebody help? 🙂 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@AU555 , Based on what I got , Try a measure like

measure =
var _rate = calculate(lastnonblankvalue(Table[year], [Rate]), allselected(Table)
return
[expected]*_rate

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@AU555 , Based on what I got , Try a measure like

measure =
var _rate = calculate(lastnonblankvalue(Table[year], [Rate]), allselected(Table)
return
[expected]*_rate

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors