Forum Discussion
matrin
6 years agoNew Member
Last column value
Hi dear community, I am new on Power BI Desktop and I need some help! I've got a metric named "number of people" that can't be cumulated. I want to return the last value of the column "nu...
- 6 years ago
If these are only Feb, then I think it is difficult. But if they are dates then you can do it easily.
There is very powerful function as part of Feb 2020 release that can help - lastnonblankvalue
https://docs.microsoft.com/en-us/dax/lastnonblankvalue-function-dax
lastnonblankvalue(Date,max(Table[Value])
- 6 years ago
Hi matrin ,
If you want to get the last value of a column, you can try the following DAX.
Measure = CALCULATE(LASTNONBLANK('Table'[Column2],1),ALL('Table'))If the problem persists,could you please share sample data or sample .pbix?
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
6 years agoSuper User
Hi,
- Do you have data for multiple months?
- Is there no year column?
- Is there an index column to let the user know the order in which the same months should appear?
Share data for more months/year column/index column and shoe the expected result clearly.