Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello everyone,
I have a table with a historical quote of currencies, as you can see there are dates with blank values, usually are the holidays, but I need this field to have the value of the last day that has quoted the currency.
King Regards
Solved! Go to Solution.
Hi ,
Not sure what extactly you are looking for but as per your screenshot it looks like to want to fill the blanks with previous day value.
To do so , Edit query --> Select eur_usd column --> Go to "Transform" tab --> select Fill down option from FILL.
Hi ,
Not sure what extactly you are looking for but as per your screenshot it looks like to want to fill the blanks with previous day value.
To do so , Edit query --> Select eur_usd column --> Go to "Transform" tab --> select Fill down option from FILL.
Hello,
the problem is that I am working on a calculated table, but thanks to your answer I was able to find a solution in the community, it is the following:
new eur_usd =
VAR LastNonBlankDate =
CALCULATE(LASTNONBLANK(cotizaciones[Date];1);
FILTER(
ALL(cotizaciones);
cotizaciones[Date]<=EARLIER(cotizaciones[Date])
&& NOT( ISBLANK(cotizaciones[eur_usd]) )
)
)
return
CALCULATE(
SUM(cotizaciones[eur_usd]);
FILTER( ALL(cotizaciones); cotizaciones[Date] = LastNonBlankDate)
) As you can see the result is fantastic ...
The solution I found in:
http://community.powerbi.com/t5/Desktop/Dax-fill-down-in-formula/td-p/318991
Thank you very much for helping me find the solution
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 45 | |
| 35 | |
| 30 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 56 | |
| 38 | |
| 21 | |
| 21 |