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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello everyone! I hope you are well, i have the following problem with a data of date (in text format or date format) and the type of work, so, the date I need is the one that has the minimum value, that is, the one where no count was found (means that there was no type "S" work on that date), as shown in the following image
to better test this I made a test table like this
Date Type of work
3/01/2023 | M |
3/01/2023 | M |
3/01/2023 | S |
3/01/2023 | S |
2/01/2023 | M |
2/01/2023 | M |
2/01/2023 | M |
1/01/2023 | M |
1/01/2023 | S |
and i put my matrix with the data
and i tried the following meausure for this but obviously it didn't work for me
please, can you help me ?
Solved! Go to Solution.
try this @Julux12
Measure =
VAR base = tbl
VAR s =
SUMMARIZE ( FILTER ( base, [Column2] = "S" ), [Column1] )
VAR m =
SUMMARIZE ( FILTER ( base, [Column2] = "M" ), [Column1] )
VAR anti =
TOPN ( 1, EXCEPT ( m, s ), [Column1], ASC )
RETURN
MAXX ( anti, [Column1] )
try this @Julux12
Measure =
VAR base = tbl
VAR s =
SUMMARIZE ( FILTER ( base, [Column2] = "S" ), [Column1] )
VAR m =
SUMMARIZE ( FILTER ( base, [Column2] = "M" ), [Column1] )
VAR anti =
TOPN ( 1, EXCEPT ( m, s ), [Column1], ASC )
RETURN
MAXX ( anti, [Column1] )
Thank you!