Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I'm trying to calculate a column of min and max value with many conditions and report this value in theses columns
Ex : Agent 1 have many login for the day 16 , I would like to report in Login Colum the first login of the day
So I need to take care about Agent, day and Column1
Have you got any ideas ?
Thanks you so much for your help.
Phil
Solved! Go to Solution.
try this, probably you will have to change the Name column to fit your data
login = VAR CurrentAgent = 'event storage copie'[Name] VAR CurrentDate = 'event storage copie'[Date] RETURN CALCULATE ( MIN ( 'event storage copie'[H] ), FILTER ( 'event storage copie', 'event storage copie'[Column1] = "LOGIN" && 'event storage copie'[Name] = CurrentAgent && 'event storage copie'[Date] = CurrentDate ) )
I have already tried this but not working:
login = CALCULATE(min('event storage copie'[H];filter(CALCULATETABLE('event storage copie');'esirius agentconfig'[Agent]='event storage copie'[Agent]&'event storage copie'[date]='event storage copie'[date])))
and this :
Login =
CALCULATE (
FIRSTNONBLANK ( 'event storage copie'[h]; TRUE () );
FILTER (
'event storage copie';
'event storage copie'[Column1] = "LOGIN"
&& 'event storage copie'[h] = MIN('event storage copie'[h]) && 'event storage copie'[Agent]='event storage copie'[Agent] && 'event storage copie'[Date2]='event storage copie'[Date2]
)
)
try this, probably you will have to change the Name column to fit your data
login = VAR CurrentAgent = 'event storage copie'[Name] VAR CurrentDate = 'event storage copie'[Date] RETURN CALCULATE ( MIN ( 'event storage copie'[H] ), FILTER ( 'event storage copie', 'event storage copie'[Column1] = "LOGIN" && 'event storage copie'[Name] = CurrentAgent && 'event storage copie'[Date] = CurrentDate ) )
Great idea !! Thanks a lot it's working 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |