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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the a table with many values for each date, and a column named type and other name type2 that distinguishes each record from each other. So it is:
type1 | type2 | value | date |
M_0 | conv | 5 | 14/02/2022 |
M_0 | spread | 10 | 14/02/2022 |
M_1 | conv | 15 | 14/02/2022 |
I tried to filter using the following code:
Medida = VAR ultima = CALCULATE ( MAX ( Table1[date] ), ALL ( Table1 ) ) RETURN IF ( MIN ( Table1[date] ) = maxDate, 1, 0 )
Unfortunately it doesnt work.
I also tried creating a column with value 1 on the latest date, and 0 elsewhere. But even adding a slicer and filtering it value dosn't work.
Solved! Go to Solution.
Hi @artp3642 ,
you can try for
Medida =
VAR ultima = CALCULATE(MAX(Table1[date]),ALL(Table1))
RETURN
IF(
Table1[date]) = ultima,1,0
)
Regards,
Aditya
Hi @artp3642 ,
you can try for
Medida =
VAR ultima = CALCULATE(MAX(Table1[date]),ALL(Table1))
RETURN
IF(
Table1[date]) = ultima,1,0
)
Regards,
Aditya
@artp3642 , Try for column
Medida =
VAR ultima = CALCULATE MAX ( Table1[date] )
RETURN
IF (Table1[date] = maxDate, 1, 0 )
what you have written is for a measure
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |