Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
80 | |
60 | |
35 | |
35 |
User | Count |
---|---|
100 | |
60 | |
56 | |
46 | |
41 |