Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have simple measure for Cost per unit = DIVIDE(SUM([EXT_LINE_COST]),SUM([RECEIVED_QTY])), I want to fill the blanks in it with available value from right coloumn. For example in attached snip, the first row should have $1.86 from column 202008 to 202108. I have Date table connected. Can someone please help me write the measure?
Solved! Go to Solution.
@Anonymous , Try like
if(isblank([Cost per unit]) , calculate(lastnonblankvalue(Date[Year Month], [Cost per unit]) , filter(all('Date'), Date[Month Year] <= Max(Date[Year Month]) ) ) , [Cost per unit])
Hi Amit,
Thank you for the soloution. I used the measure you provided (I named it Cost) and it almost worked. the total for Cost measure is summing the values from Cost. Is it possibel to SUM the values of Cost Measure?
@Anonymous , Try like
if(isblank([Cost per unit]) , calculate(lastnonblankvalue(Date[Year Month], [Cost per unit]) , filter(all('Date'), Date[Month Year] <= Max(Date[Year Month]) ) ) , [Cost per unit])
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |