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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jr3151006
Helper IV
Helper IV

DAX SUMMARIZE Help - works only with 01 field from table, but when we Add the second stops to work

Hi,

I have a table with too many records, we need distinct values for a selected period on a slicer.

If you take a look the image below, I'm able to do this in the visual page, using 'LATEST' and also 'LAST' feature respectivelly.

 

LatestDate-forDAX.png

 

>>>> Is there a way to do the same but this using DAX?

Here is my current DAX which works as epxected but only when using for 01 field - we need group the main table by the 03 fields in order to then show all other fields in the dataset.

 

 

DAX-Table-Sumarized = SUMMARIZE(Table1, Table1[Número],"VirtualField","")

 

 



3 REPLIES 3
jr3151006
Helper IV
Helper IV

Hi @FreemanZ,

 

tks for quick reply and help.

You came almost there....
The 'DATE' field was wrong fullfilled with the MAX DATE for each record and not the LAST/LATEST respecting the date interval defined on the slicer.

LatestDate-forDAX-max-ISSUE.png

 

FreemanZ
Super User
Super User

try to create a new table with this:

DAX-Table-Sumarized =
ADDCOLUMNS(
    VALUES(Table1[Número]),
    "Date",
    CALCULATE(MAX(Table1[Date])),
    "Consider",
    CALCULATE(MAX(Table1[Consider]))
)
jr3151006
Helper IV
Helper IV

I also tried the DAX 'GroupBy' but when we add other fields, the result is not as the expected....

 

 

Dax-Table-GroupBy = GROUPBY(Table1,Table1[Número],Table1[Date],Table1[Consider])

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.