Reply
tecumseh
Resolver I
Resolver I
Partially syndicated - Outbound

DAX Create Summary Table With Max Date

Hi all,

How can I create a summary table from a fact table that return only the Row with the Max Date for each set of criteria?
Here is what I have so far, but I I haven't been able to get just the Max Date.

Data Summary =
SUMMARIZE(
    Data,
    Data[Co],
    Data[Division],
    Data[Region],
    Data[District],
    Data[Center],
    Data[Date],
    Data[Amount]
)

summary table.PNG


Thanks
-w
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Syndicated - Outbound
Data Summary =
var a = SUMMARIZE(
    Data,
    [Co],
    [Division],
    [Region],
    [District],
    [Center],
    [Date],
    [Amount]
)
RETURN MAXX(a,[Date])

View solution in original post

2 REPLIES 2
VilmarSch
Post Partisan
Post Partisan

Syndicated - Outbound

Veja se ajuda

 

Tabela2 = 
SUMMARIZE(
    Tabela,
    [Co],
    [Division],
    [Region],
    [District],
    [Center],
    "Date", MAX(Tabela[Date])
)
lbendlin
Super User
Super User

Syndicated - Outbound
Data Summary =
var a = SUMMARIZE(
    Data,
    [Co],
    [Division],
    [Region],
    [District],
    [Center],
    [Date],
    [Amount]
)
RETURN MAXX(a,[Date])
avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)