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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Bebecirux
Frequent Visitor

the last result

Hi @olgad good afternoon

I have a problem with the last fob size, it should give me the last one, but in some cases the month is repeated and then it adds them, how can I do so that it gives me only 1 value

 

Captura de pantalla 2023-04-17 145421.jpg

 

Captura de pantalla 2023-04-17 145355.jpg

 

 

dax: measures

 

Ultimo FOB =
VAR UltimaFechaFOB =
    CALCULATE(
        MAX(CostosXProveedor[Fecha]),
        ALL(CostosXProveedor[FOB])
    )

RETURN
    CALCULATE(
        SUM(CostosXProveedor[FOB]),
        FILTER(CostosXProveedor, CostosXProveedor[Fecha] = UltimaFechaFOB
       
    ))
 

How should I complete my measurement only so that it brings me the last value and does not add me

thank you so much

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Ultimo FOB =
VAR UltimaFechaFOB =
    CALCULATE(
        MAX(CostosXProveedor[Fecha]),
        ALL(CostosXProveedor[FOB])
    )

RETURN
    CALCULATE(
        MAX(CostosXProveedor[FOB]),
        FILTER(CostosXProveedor, CostosXProveedor[Fecha] = UltimaFechaFOB
       
    ))

View solution in original post

2 REPLIES 2
Bebecirux
Frequent Visitor

@Ahmee thank you so much

Ahmedx
Super User
Super User

Ultimo FOB =
VAR UltimaFechaFOB =
    CALCULATE(
        MAX(CostosXProveedor[Fecha]),
        ALL(CostosXProveedor[FOB])
    )

RETURN
    CALCULATE(
        MAX(CostosXProveedor[FOB]),
        FILTER(CostosXProveedor, CostosXProveedor[Fecha] = UltimaFechaFOB
       
    ))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors