Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
@ links to members, content
I am new to writing variables in Power BI. I have a report with multiple dates and amounts. I would like to see the very last date for a cutomer gave with the amount. Here is my table:
My report should only show the 3/10/2022 date and amount. Here is my variable:
@Anonymous So, assuming that there is some column in your table visual like "Customer", then you could try a couple measures like this:
Last Gift Date Measure =
VAR __Customer = MAX('hopedb hmg_gift'[Customer])
VAR __Return = MAXX( FILTER( 'hopedb hmg_gift', [Customer] = __Customer ), [gift_date_natural])
RETURN
__Return
Last Gift Amount Measure =
VAR __MaxDate = [Last Gift Date Measure]
VAR __Return = MAXX( FILTER( 'hopedb hmg_gift', [Customer] = __Customer && [gift_date_natural] = __MaxDate ), [amount])
RETURN
__Return
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 51 | |
| 39 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 79 | |
| 37 | |
| 27 | |
| 25 |