Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone,
I have a table with this form:
PROJECT FINANCIAL_DATE METRIC CALENDARISTIC_DATE [CALCULATED_COLUMN]
x x x x (solution)
In the METRIC column i have some projects that have blank values for that specific calendaristic date. In the [CALCULATED_COLUMN] i want to bring the last populated value looking in the previous dates, and if there is no value, put 0 instead.
I have tried various formula combinations with lastnonblank, earlier, max but i couldn't seem to get it working.
Help me please,
Thank you.
Solved! Go to Solution.
I am pretty sure i have found the solution, if someone else is interested:
[CALCULATED_COLUMN]= VAR CurrentData=TABLE[Date] Return IF(TABLE(METRIC)=BLANK(), CALCULATE(LASTNONBLANK([METRIC],[METRIC]),FILTER(ALLEXCEPT(TABLE,[PROJECT]),[DATE]<=CurrentData)),[METRIC])
I am pretty sure i have found the solution, if someone else is interested:
[CALCULATED_COLUMN]= VAR CurrentData=TABLE[Date] Return IF(TABLE(METRIC)=BLANK(), CALCULATE(LASTNONBLANK([METRIC],[METRIC]),FILTER(ALLEXCEPT(TABLE,[PROJECT]),[DATE]<=CurrentData)),[METRIC])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |