Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi all,
I have a table with date and time. I want to exlude the rows with time = 00:00:00 to compute the max Occupation.
I've written a mesure that gives the maximum occupation but with time = 00:00:00 included
************************************
Thank you
Solved! Go to Solution.
Hi @khalidjou
You can try this measure
Max_occup =
VAR Datum =
DATE ( [max_Année]; [max_month]; [max_jour] )
VAR Bi =
CALCULATE (
MAXA ( tblname[Occupation] );
tblname[Date] = Datum;
TIMEVALUE ( tblname[Date] ) <> TIME ( 0; 0; 0 )
)
RETURN
Bi
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @khalidjou
You can try this measure
Max_occup =
VAR Datum =
DATE ( [max_Année]; [max_month]; [max_jour] )
VAR Bi =
CALCULATE (
MAXA ( tblname[Occupation] );
tblname[Date] = Datum;
TIMEVALUE ( tblname[Date] ) <> TIME ( 0; 0; 0 )
)
RETURN
Bi
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
@khalidjou , You need like
new meausre =
CALCULATE(MAXA(tblname[Occupation]);filter(allselected(tblname) , tblname[Date]=max(tblname[Date]) && timevalues([tblname[Date]) <> time(0,0,0)))
or only date part of the date
Only date column = datevalue([Date])
new meausre =
CALCULATE(MAXA(tblname[Occupation]);filter(allselected(tblname) , tblname[Only Date]=max(tblname[Only Date]) && timevalues([tblname[Date]) <> time(0,0,0)))
Thank you Amitchandak,
Another question please. When I finf the Max occupation, how can I get the corresponding date ?
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 107 | |
| 42 | |
| 32 | |
| 26 |