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

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.

Reply
Gangasaniravi
Helper I
Helper I

Getting max date based

Hi All,

I want to display only maximum date value if you have other columns in visual.

customer NameDateBalancebucket
Customer 130-Nov-22450-30
Customer 131-Oct-225031-40
Customer 131-Dec-222341-60

I want to show max date, if select November and December months in slicer I want to see only December data and if I select October and November I need to see only November data.

output

customer NameDateBalancebucket
Customer 131-Dec-222341-60
3 REPLIES 3
Gangasaniravi
Helper I
Helper I

@Anonymous  Thank you for the help, Here i am getting balance based on top selection. let say if i select top 2 then i need to get 2 customers first then if i select all months in slicer in visual i need to see december only.Below is the logic for

top Balance =

VAR customerrank = RANKX(FILTER(ALLSELECTED(customercustomername]), [Balance] <> BLANK()), [Balance],,DESC)
VAR balance = IF(customerrank<= SELECTEDVALUE('Custimer_rank'[Rank]), [Balance])
Return balance
Anonymous
Not applicable

Hi, @Gangasaniravi 

Based on your information, I create a table

vyohuamsft_0-1707206613710.png

 

You want to show max date, use following DAX:

vyohuamsft_1-1707206613712.png

 

MaxDate = IF(MAX('Table'[Date])=MAXX(ALLSELECTED('Table'),'Table'[Date]),1)

 

If you select November and December in the slicer, this will show data for December.

1.1.png

 

 

And if you select October and November, it will show data for November

1.2.png

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

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!

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.

Top Solution Authors