Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I want a Column to find the last non blank value from "Class" following the order of the "Date" column.
Thus, the first 3 rows will be empty.
Rows from 31/01/2016 to 30/04/2016 will be A.
And ALL the remaing rows will be B.
I know the following will work:
Thanks for helping!
Solved! Go to Solution.
Hi @webportal ,
You can create a calculated column as below:
Coluna =
CALCULATE (
LASTNONBLANK ( 'Tabela'[Class], MAX ( 'Tabela'[Data] ) ),
ALL ( 'Tabela' )
)
Best Regards
Can you tell me more why this formula work ? Why use min function ?
Hi @webportal ,
You can create a calculated column as below:
Coluna =
CALCULATE (
LASTNONBLANK ( 'Tabela'[Class], MAX ( 'Tabela'[Data] ) ),
ALL ( 'Tabela' )
)
Best Regards
Please try this measure expression, replacing T1 with your actual table name.
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
70 | |
68 | |
50 | |
32 |
User | Count |
---|---|
117 | |
100 | |
73 | |
65 | |
40 |