Forum Discussion
Copy lastnonblank value for future date
- Anonymous4 years ago
Hi Marwen89 ,
Power BI doesn't support you to transform the existing column by Dax. You need to create a new column by Dax to achieve your goal.
Try this code to create calculated columns.
Fill Down CANADA = VAR _Last = CALCULATE(LASTNONBLANKVALUE('Table'[Date], SUM('Table'[CANADA])), ALLSELECTED()) return IF('Table'[CANADA] = BLANK(),_last,'Table'[CANADA])Fill Down EUROPE = VAR _Last = CALCULATE(LASTNONBLANKVALUE('Table'[Date], SUM('Table'[EUROPE])), ALLSELECTED()) return IF('Table'[CANADA] = BLANK(),_last,'Table'[EUROPE])Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Marwen89
Can you post sample data as text and expected output?
Not enough information to go on;
please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
4. Relation between your tables
Appreciate your Kudos!!
LinkedIn:www.linkedin.com/in/vahid-dm/