Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello, I have a table with lower and upper limits given for specific products (mix name) and measurements method (propertie). Those limits can change with time, and I'm looking for a DAX measurement to give the last limits, I mean the one from the most recent date indication. I tried LASTNONBLANK function on my lower (TI) and upper (TS) columns but it sorts those numeric column from mini to maxi and give me... the maxi! Any solution to identify the most recent limits from my table?
Thanks,Summury table given by LASTNONBLANK DAX functions and data source table
Solved! Go to Solution.
Hi all! I found a great solution on this last post: https://community.powerbi.com/t5/Desktop/How-can-I-get-the-last-value-of-a-column-in-my-dataset/td-p...
I put the solution in an updated picture, thanks to all answers below!
see you,
Hi all! I found a great solution on this last post: https://community.powerbi.com/t5/Desktop/How-can-I-get-the-last-value-of-a-column-in-my-dataset/td-p...
I put the solution in an updated picture, thanks to all answers below!
see you,
[Last TI] =
if(
HASONEVALUE( T[Mix Name] )
&& HASONEVALUE( T[Propertie] ),
var __rows =
topn(1,
YourTable,
YourTable[Date Fabrication],
DESC
)
return
if(
COUNTROWS( __rows ) = 1,
MAXX(
__rows,
YourTable[TI]
)
)
)
[Last TS] =
if(
HASONEVALUE( T[Mix Name] )
&& HASONEVALUE( T[Propertie] ),
var __rows =
topn(1,
YourTable,
YourTable[Date Fabrication],
DESC
)
return
if(
COUNTROWS( __rows ) = 1,
MAXX(
__rows,
YourTable[TS]
)
)
)
Best
D
Hi @GAETAN63 ,
Create this new column:
Hi @GAETAN63 ,
I am not very clear as to what is your expected outcome. However, you can create a Table.
New Table = Filter ('Table', 'Table'[DateFabrication] = Min('Table'[Data Fabrication])
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |