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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Rimple_Manni
Frequent Visitor

Matrix issues

Rimple_Manni_0-1675814671465.png

Hi Everyone, I'm struggling in this code, if anyone can help please - I want to fetch only last values from different months and show in a matrix. For example -

 
 
Jan - $4,724,484.1
 
Feb - $6,321,244.7

 

 

5 REPLIES 5
FreemanZ
Community Champion
Community Champion

hi @Rimple_Manni 

try like

1) add a column like:

MONTH = FORMAT([Date], "mmm")

 

2) plot a visual with the month column and a measure like:

LastRevenue=

VAR _monthtable =

FILTER(

        ALL(TableName),

        MONTH([Date]) = MONTH(MAX([Date]))

)

VAR _lastdate =

MAXX(

    _monthtable,

    [Date]

)

RETURN

MAXX(

    FILTER(

        _monthtable, 

        TableName[Date] = _lastdate

    ),

    TableName[Online Revenue]

)

@gfreeman thanks for the response, I have tried that however it's throwing an error. Please help me understand this

Rimple_Manni_0-1675816635391.png

 

hi @Rimple_Manni 

I have changed earlier to max actually. try it

@FreemanZ hmm, it still shows only latest one and not filter using month

Rimple_Manni_0-1675817107659.png

 

hi @Rimple_Manni 

strangely enough, i verified with a simplified dataset like:

FreemanZ_0-1675819312777.png

 

it worked like:

FreemanZ_1-1675819343130.png

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.