The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
11 | |
7 | |
5 | |
5 | |
4 |
User | Count |
---|---|
16 | |
14 | |
8 | |
6 | |
6 |