Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi Community,
I have an issue where I just can't get on, similar issues here in the forum have already been dealt with, but even they did not give the desired result.
I have a table with four columns:
ID 1 / ID 2 / value / date
I filter for a value and then need the oldest date per each combination of ID 1 and ID 2.
I tried this combination via a VAR with Concatenate, but that does not work. Since I work via live connection, I can't create an auxiliary column either, then this wouldn't be a problem.
VAR combination =
Concatenate(selectedvalue(ID1,(selectedvalue(ID2))
VAR min_date =
Min(selectedvalue(Combination),
calculate(min(date),filter(value = "xxx")))
Can you help me here please? What are the possibilities to solve this? Using a quickmeasure I can only select one category at a time, the formula generated by PBI with keepfilters() does not accept two arguments here either.
thank you in advance
Solved! Go to Solution.
[Date of Oldest Combination] =
var IDCombinationToLookFor =
    SUMMARIZE(
        T,
        T[ID 1],
        T[ID 2]
    )
var Result =
    CALCULATE(
        MIN( T[date] ),
        IDCombinationToLookFor,
        REMOVEFILTERS( T )
    )
return
    Resultthis one works, thanks a lot!
Thank you. Unfortunately it's not working with the second VAR: only one column argument is accepted from the min-function.
Do you have any idea here? Thank you
Date of Oldest Combination = 
var IDCombinationToLookFor =
    SUMMARIZE(
        T,
        T[ID 1],
        T[ID 2]
    )
var Result =
    CALCULATE(
        MIN( T[date] ),
        IDCombinationToLookFor,
        ALLSELECTED( T ),
        REMOVEFILTERS( T )
    )
return
    ResultTry the one above... This is what I get:
What does it mean "it's not working with the second VAR"? My MIN function does have one column as the argument: T[date]. Where's the problem?
[Date of Oldest Combination] =
var IDCombinationToLookFor =
    SUMMARIZE(
        T,
        T[ID 1],
        T[ID 2]
    )
var Result =
    CALCULATE(
        MIN( T[date] ),
        IDCombinationToLookFor,
        REMOVEFILTERS( T )
    )
return
    Result 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |