Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi There,
I wantto countresoved date only for max week which is 45 in my dataset and row count is 3.
Expected answer= Resoved Date is 3.
Solved! Go to Solution.
Hi @PaulJ185
Assuming week is a measure
Resolved date with max week - Count =
VAR _SummaryTable =
SUMMARIZECOLUMNS (
'Table'[Resolved Date],
"@week", CALCULATE ( SUM ( 'Table'[Week] ) )
)
VAR _Max =
MAXX ( _SummaryTable, [@week] )
RETURN
COUNTROWS ( FILTER ( _SummaryTable, [@week] = _Max ) )
Resolved date with max week =
VAR _SummaryTable =
SUMMARIZECOLUMNS (
'Table'[Resolved Date],
"@week", CALCULATE ( SUM ( 'Table'[Week] ) )
)
VAR _Max =
MAXX ( _SummaryTable, [@week] )
RETURN
MAXX ( FILTER ( _SummaryTable, [@week] = _Max ), [Resolved Date] )
Hi PaulJ185,
We are following up to see if what we shared solved your issue. If you need more support, please reach out to the Microsoft Fabric community.
Thank you.
Thankyou, @Khashayar, @Shahid12523, @Kedar_Pande, and @danextian for your responses.
Hi PaulJ185,
We appreciate your inquiry through the Microsoft Fabric Community Forum.
We would like to inquire whether have you got the chance to check the solutions provided by @Khashayar, @Shahid12523, @Kedar_Pande and @danextian to resolve the issue. We hope the information provided helps to clear the query. Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.
Thank you.
Hi @PaulJ185
Assuming week is a measure
Resolved date with max week - Count =
VAR _SummaryTable =
SUMMARIZECOLUMNS (
'Table'[Resolved Date],
"@week", CALCULATE ( SUM ( 'Table'[Week] ) )
)
VAR _Max =
MAXX ( _SummaryTable, [@week] )
RETURN
COUNTROWS ( FILTER ( _SummaryTable, [@week] = _Max ) )
Resolved date with max week =
VAR _SummaryTable =
SUMMARIZECOLUMNS (
'Table'[Resolved Date],
"@week", CALCULATE ( SUM ( 'Table'[Week] ) )
)
VAR _Max =
MAXX ( _SummaryTable, [@week] )
RETURN
MAXX ( FILTER ( _SummaryTable, [@week] = _Max ), [Resolved Date] )
Resolved Count for Max Week =
VAR MaxWeek = CALCULATE(MAX('Table'[Week]), ALL('Table'))
RETURN
CALCULATE(
COUNT('Table'[Resolved Date]),
'Table'[Week] = MaxWeek
)
DAX Measure: Count for Max Week
ResolvedCount_MaxWeek =
CALCULATE(
COUNTROWS('YourTable'),
FILTER(
'YourTable',
'YourTable'[Week] = CALCULATE(MAX('YourTable'[Week]))
)
)
You want to count the number of Resolved Dates only for the maximum week (Week = 45) in your dataset.
In Power BI (DAX), you can use this measure:
Resolved Count =
VAR MaxWeek = MAX('YourTable'[Week])
RETURN
COUNTROWS(
FILTER(
'YourTable',
'YourTable'[Week] = MaxWeek
)
)
Explanation:
Expected Result:
Resolved Count = 3
If you found this post helpful, please consider accepting it as the solution so that other members can find it more easily.
Regards,
Khashayar Yazdani | Microsoft MCT
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 54 | |
| 42 | |
| 30 | |
| 24 |