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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
tecumseh
Helper II
Helper II

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

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

Veja se ajuda

 

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

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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