Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Julux12
New Member

I need the date of a blank count

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

Julux12_0-1677725840076.png

 

to better test this I made a test table like this

 

Date                 Type of work

3/01/2023M
3/01/2023M
3/01/2023S
3/01/2023S
2/01/2023M
2/01/2023M
2/01/2023M
1/01/2023M
1/01/2023

S

Julux12_2-1677726367823.png

and i put my matrix with the data

Julux12_4-1677727233548.png

 

and i tried the following meausure for this but obviously it didn't work for me

 

date for min work S =
var _summarized = SUMMARIZE(Table_1, Table_1[Date], "var1",
CALCULATE(COUNT(Table_1[Type of work]),FILTER(Table_1, Table_1[Type of work] = "S"))
)
return MINX(
    FILTER(
        _summarized,
        [var1] = MINX(_summarized,[var1])
    ),
    [Date]
)
Julux12_3-1677726671389.png

 

please, can you help me ?

 

1 ACCEPTED SOLUTION
smpa01
Community Champion
Community Champion

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] )

 


========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
• Week 3: View
• Week 4: View
========================

View solution in original post

2 REPLIES 2
smpa01
Community Champion
Community Champion

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] )

 


========================
Did I answer your question? Mark my post as a solution!
Proud to be a Super User
My Custom Visualization Projects
• Plotting Live Sound: Live Sound
• Beautiful News: Women in Parliament, Energy Mix, Shrinking Armies
• Visual Capitalist: Working Hrs
• Others: Easing Graph, Animated Calendar
MayViz Submissions
• Week 1: View
• Week 2: View
• Week 3: View
• Week 4: View
========================

Thank you!

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.